Browse Source

客户列表修改联系人BUG、复核文员备注BUG修复

dist.1.3.0
汤建军 6 months ago
parent
commit
e01fcb9748
  1. 1
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java
  2. 1
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java
  3. 18
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

1
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataStoreContactServiceImpl.java

@ -116,6 +116,7 @@ public class BasicdataStoreContactServiceImpl extends BaseServiceImpl<BasicdataS
basicdataClientEntity.setId(shopId); basicdataClientEntity.setId(shopId);
basicdataClientEntity.setLinkman(basicdataStoreContact.getLinkman()); basicdataClientEntity.setLinkman(basicdataStoreContact.getLinkman());
basicdataClientEntity.setPhone(basicdataStoreContact.getPhone()); basicdataClientEntity.setPhone(basicdataStoreContact.getPhone());
basicdataClientService.updateById(basicdataClientEntity);
} }
return this.saveOrUpdate(basicdataStoreContact); return this.saveOrUpdate(basicdataStoreContact);
} }

1
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java

@ -346,6 +346,7 @@ public class DistributionSignforController extends BladeController {
DistributionSignforDTO distributionSignforDTO = new DistributionSignforDTO(); DistributionSignforDTO distributionSignforDTO = new DistributionSignforDTO();
distributionSignforDTO.setId(distributionSignfor.getId()); distributionSignforDTO.setId(distributionSignfor.getId());
distributionSignforDTO.setClerkSignRemarks(distributionSignfor.getClerkSignRemarks()); distributionSignforDTO.setClerkSignRemarks(distributionSignfor.getClerkSignRemarks());
distributionSignforDTO.setMap(distributionSignfor.getMap());
distributionSignforService.updateSign(distributionSignforDTO); distributionSignforService.updateSign(distributionSignforDTO);
distributionStockupInfoService.maintenanceStockUp(distributionSignfor.getReservationId(),1); distributionStockupInfoService.maintenanceStockUp(distributionSignfor.getReservationId(),1);
} }

18
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -668,15 +668,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
log.error("文员复核查询配送计划失败,deliveryId:{}", distributionSignfor.getDeliveryId()); log.error("文员复核查询配送计划失败,deliveryId:{}", distributionSignfor.getDeliveryId());
return R.fail("操作失败,请核对计划信息!!!"); return R.fail("操作失败,请核对计划信息!!!");
} }
BladeUser user = AuthUtil.getUser(); // this.updatePicture(distributionSignforDTO);
distributionSignfor.setExamineUserId(user.getUserId()); // this.updateById(distributionSignfor);
distributionSignfor.setSigningStatus(SignforStatusConstant.yiqianshou.getValue());
//复核时间为签收时间
String format = sdf.format(new Date());
distributionSignfor.setSigningTime(format);
distributionSignfor.setExamineUserName(user.getNickName());
this.updatePicture(distributionSignforDTO);
this.updateById(distributionSignfor);
//修改预约单的签收状态和装车状态 //修改预约单的签收状态和装车状态
//查询签收信息 //查询签收信息
DistributionReservationEntity reservationEntity = distributionReservationService.getById(distributionSignfor.getReservationId()); DistributionReservationEntity reservationEntity = distributionReservationService.getById(distributionSignfor.getReservationId());
@ -6220,6 +6213,13 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionSignfor.setClerkSignRemarks(distributionSignfor.getClerkSignRemarks()); distributionSignfor.setClerkSignRemarks(distributionSignfor.getClerkSignRemarks());
Date date = new Date(); Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
BladeUser user = AuthUtil.getUser();
distributionSignfor.setExamineUserId(user.getUserId());
distributionSignfor.setSigningStatus(SignforStatusConstant.yiqianshou.getValue());
//复核时间为签收时间
String format = sdf.format(new Date());
distributionSignfor.setSigningTime(format);
distributionSignfor.setExamineUserName(user.getNickName());
distributionSignfor.setSigningTime(sdf.format(date)); distributionSignfor.setSigningTime(sdf.format(date));
boolean isSuccess = this.updatePicture(distributionSignfor); boolean isSuccess = this.updatePicture(distributionSignfor);
log.info(">>>> updateSign isSuccess ={}", isSuccess); log.info(">>>> updateSign isSuccess ={}", isSuccess);

Loading…
Cancel
Save