修改三方验收bug
This commit is contained in:
@@ -9,7 +9,7 @@ import com.cool.store.request.ThreeAcceptanceCheckRequest;
|
||||
import com.cool.store.request.ThreeAcceptanceRequest;
|
||||
import com.cool.store.request.BookingAcceptanceRequest;
|
||||
import com.cool.store.response.FitmentResponse;
|
||||
import com.cool.store.response.ThreeAcceptanceResponse;
|
||||
|
||||
import com.cool.store.response.ThreeSignResponse;
|
||||
import com.cool.store.vo.Fitment.DecorationStageVO;
|
||||
import com.cool.store.vo.Fitment.DecorationModelVO;
|
||||
@@ -113,7 +113,7 @@ public interface DecorationService {
|
||||
* @Date: 2024/5/6
|
||||
* @description:查看三方验收签字
|
||||
*/
|
||||
List<ThreeAcceptanceDTO> getThreeAcceptanceSign(Long shopId);
|
||||
ThreeSignResponse getThreeAcceptanceSign(Long shopId);
|
||||
/**
|
||||
* @Auther: wangshuo
|
||||
* @Date: 2024/5/3
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.cool.store.request.ThreeAcceptanceCheckRequest;
|
||||
import com.cool.store.request.ThreeAcceptanceRequest;
|
||||
import com.cool.store.request.BookingAcceptanceRequest;
|
||||
import com.cool.store.response.FitmentResponse;
|
||||
import com.cool.store.response.ThreeAcceptanceResponse;
|
||||
|
||||
import com.cool.store.response.ThreeSignResponse;
|
||||
import com.cool.store.service.*;
|
||||
import com.cool.store.utils.poi.StringUtils;
|
||||
@@ -412,6 +412,11 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean submitThreeCheck(ThreeAcceptanceCheckRequest request) {
|
||||
log.info("submitThreeCheck, request:{} ", JSONObject.toJSONString(request));
|
||||
Boolean flag = assessmentDataDAO.deleteByShopId(request.getShopId());
|
||||
if (Boolean.FALSE.equals(flag)){
|
||||
log.error("三方验收插入检查项失败");
|
||||
throw new ServiceException(ErrorCodeEnum.CHECK_ITEM);
|
||||
}
|
||||
List<AssessmentDataDO> assessmentDataDOS = new ArrayList<>();
|
||||
for (AssessmentDataDTO assessmentDataDTO : request.getAssessmentDataDTOS()) {
|
||||
AssessmentDataDO assessmentDataDO = new AssessmentDataDO();
|
||||
@@ -631,9 +636,9 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ThreeAcceptanceDTO> getThreeAcceptanceSign(Long shopId) {
|
||||
List<ThreeAcceptanceDTO> threeAcceptanceDTOS = new ArrayList<>();
|
||||
public ThreeSignResponse getThreeAcceptanceSign(Long shopId) {
|
||||
|
||||
ThreeSignResponse threeSignResponse = new ThreeSignResponse();
|
||||
AcceptanceInfoDO acceptanceInfoDO = acceptanceInfoDAO.selectByShopId(shopId);
|
||||
//工程部
|
||||
if (StringUtils.isNotEmpty(acceptanceInfoDO.getEngineeringAcceptanceSignatures())) {
|
||||
@@ -643,7 +648,7 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
engineeringDTO.setComments(engineering.getString("remark"));
|
||||
engineeringDTO.setResultType(engineering.getInteger("result"));
|
||||
engineeringDTO.setAcceptanceTime(engineering.getString("acceptanceTime"));
|
||||
threeAcceptanceDTOS.add(CommonConstants.ZERO, engineeringDTO);
|
||||
threeSignResponse.setEngineeringAcceptance(engineeringDTO);
|
||||
}
|
||||
//营运部
|
||||
if (StringUtils.isNotEmpty(acceptanceInfoDO.getOperationsAcceptanceSignatures())) {
|
||||
@@ -653,7 +658,7 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
operationsDTO.setComments(operations.getString("remark"));
|
||||
operationsDTO.setResultType(operations.getInteger("result"));
|
||||
operationsDTO.setAcceptanceTime(operations.getString("acceptanceTime"));
|
||||
threeAcceptanceDTOS.add(CommonConstants.ONE, operationsDTO);
|
||||
threeSignResponse.setOperationsAcceptance(operationsDTO);
|
||||
}
|
||||
//加盟商
|
||||
if (StringUtils.isNotEmpty(acceptanceInfoDO.getPartnerAcceptanceSignatures())) {
|
||||
@@ -663,9 +668,9 @@ public class DecorationServiceImpl implements DecorationService {
|
||||
partnerDTO.setComments(partner.getString("remark"));
|
||||
partnerDTO.setResultType(partner.getInteger("result"));
|
||||
partnerDTO.setAcceptanceTime(partner.getString("acceptanceTime"));
|
||||
threeAcceptanceDTOS.add(CommonConstants.TWO, partnerDTO);
|
||||
threeSignResponse.setPartnerAcceptance(partnerDTO);
|
||||
}
|
||||
return threeAcceptanceDTOS;
|
||||
return threeSignResponse;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user