updateShopStageAndAuditInfo使用
This commit is contained in:
@@ -5,10 +5,12 @@ import com.cool.store.context.CurrentUserHolder;
|
||||
import com.cool.store.context.LoginUserInfo;
|
||||
import com.cool.store.dao.EnterpriseUserDAO;
|
||||
import com.cool.store.dao.RegionDao;
|
||||
import com.cool.store.dao.ShopStageInfoDAO;
|
||||
import com.cool.store.entity.LicenseTransactDO;
|
||||
import com.cool.store.entity.ShopAuditInfoDO;
|
||||
import com.cool.store.enums.AuditTypeEnum;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.point.ShopSubStageStatusEnum;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
import com.cool.store.mapper.ApplyLicenseMapper;
|
||||
import com.cool.store.mapper.ShopAuditInfoMapper;
|
||||
@@ -48,6 +50,9 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
@Resource
|
||||
private RegionDao regionDao;
|
||||
|
||||
@Resource
|
||||
ShopStageInfoDAO shopStageInfoDAO;
|
||||
|
||||
@Override
|
||||
public Boolean submitLicense(SubmitLicenseRequest request) {
|
||||
log.info("submitLicense request:{}", JSONObject.toJSONString(request));
|
||||
@@ -71,6 +76,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
shopAuditInfoDO.setDataType(0);
|
||||
shopAuditInfoMapper.insertSelective(shopAuditInfoDO);
|
||||
}
|
||||
shopStageInfoDAO.updateShopStageAndAuditInfo(request.getShopId(), ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_41,null);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -122,6 +128,7 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
public Boolean licenseExamine(Long shopId, Integer status,String result) {
|
||||
ShopAuditInfoDO shopAuditInfoDO = new ShopAuditInfoDO();
|
||||
shopAuditInfoDO.setShopId(shopId);
|
||||
ShopSubStageStatusEnum shopSubStageStatusEnum = null;
|
||||
shopAuditInfoDO.setAuditType(AuditTypeEnum.LICENSE_APPROVAL.getCode());
|
||||
LoginUserInfo user = CurrentUserHolder.getUser();
|
||||
shopAuditInfoDO.setSubmittedUserId(user.getUserId());
|
||||
@@ -130,10 +137,13 @@ public class ApplyLicenseServiceImpl implements ApplyLicenseService {
|
||||
shopAuditInfoDO.setResultType(status);
|
||||
if (status == Constants.ZERO_INTEGER){
|
||||
shopAuditInfoDO.setPassReason(result);
|
||||
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_43;
|
||||
}else if (status == Constants.ONE_INTEGER){
|
||||
shopAuditInfoDO.setRejectReason(result);
|
||||
shopSubStageStatusEnum = ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_42;
|
||||
}
|
||||
shopAuditInfoMapper.insertSelective(shopAuditInfoDO);
|
||||
shopStageInfoDAO.updateShopStageAndAuditInfo(shopId,shopSubStageStatusEnum,null);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user