ApplyLicenseService

This commit is contained in:
guohb
2024-04-30 10:32:28 +08:00
parent dde0f71967
commit a2d2c498c7
3 changed files with 9 additions and 1 deletions

View File

@@ -11,4 +11,7 @@ import java.util.List;
public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> { public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request); List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request);
void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);
} }

View File

@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!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"> <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"> <select id="licenseList" resultType="com.cool.store.response.LicenseListResponse">

View File

@@ -162,12 +162,12 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
shopAuditInfoDO.setPassReason(result); shopAuditInfoDO.setPassReason(result);
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_43; shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_43;
licenseTransactDO.setSubmitStatus(3); licenseTransactDO.setSubmitStatus(3);
applyLicenseMapper.updateByPrimaryKeySelective(licenseTransactDO);
}else if (status == Constants.ONE_INTEGER){ }else if (status == Constants.ONE_INTEGER){
licenseTransactDO.setSubmitStatus(2); licenseTransactDO.setSubmitStatus(2);
shopAuditInfoDO.setRejectReason(result); shopAuditInfoDO.setRejectReason(result);
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_42; shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_42;
} }
applyLicenseMapper.updateByShopId(licenseTransactDO);
//插入操作/意见 //插入操作/意见
shopAuditInfoMapper.insertSelective(shopAuditInfoDO); shopAuditInfoMapper.insertSelective(shopAuditInfoDO);
//更新阶段状态 //更新阶段状态