ApplyLicenseService
This commit is contained in:
@@ -11,4 +11,7 @@ import java.util.List;
|
||||
public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
|
||||
|
||||
List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request);
|
||||
|
||||
void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.ApplyLicenseMapper">
|
||||
<update id="updateByShopId">
|
||||
update xfsg_license_transact
|
||||
set submit_status = #{entity.submitStatus}
|
||||
where shop_id = #{entity.shopId}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="licenseList" resultType="com.cool.store.response.LicenseListResponse">
|
||||
|
||||
@@ -162,12 +162,12 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
shopAuditInfoDO.setPassReason(result);
|
||||
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_43;
|
||||
licenseTransactDO.setSubmitStatus(3);
|
||||
applyLicenseMapper.updateByPrimaryKeySelective(licenseTransactDO);
|
||||
}else if (status == Constants.ONE_INTEGER){
|
||||
licenseTransactDO.setSubmitStatus(2);
|
||||
shopAuditInfoDO.setRejectReason(result);
|
||||
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_42;
|
||||
}
|
||||
applyLicenseMapper.updateByShopId(licenseTransactDO);
|
||||
//插入操作/意见
|
||||
shopAuditInfoMapper.insertSelective(shopAuditInfoDO);
|
||||
//更新阶段状态
|
||||
|
||||
Reference in New Issue
Block a user