Commit efd215eac1315c9a4f02aafbd8f38e7661683583

Authored by 张志伟
1 parent 31c21eb0

feature(*): 站岗信息新增门店

- 站岗信息新增门店
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/pub/PubStandBizService.java
... ... @@ -151,9 +151,13 @@ public class PubStandBizService {
151 151 staffInfo = pubStandStaffInfoService.queryStaffByGroupId(staffId, groupId).orElse(null);
152 152 }
153 153 BV.notNull(staffInfo, () -> "修改失败,请刷新后重试");
154   - staffInfo.setStandType(PubStandType.ofValue(standDTO.getStandType()));
  154 + PubStandType standType = PubStandType.ofValue(standDTO.getStandType());
  155 + staffInfo.setStandType(standType);
155 156 staffInfo.setStandRang(PubStandRang.ofValue(standDTO.getStandRang()));
156 157 staffInfo.setIdCode(standDTO.getIdCode());
  158 + if (PubStandType.PUB.equals(standType)) {
  159 + staffInfo.setIdCode(null);
  160 + }
157 161 pubStandStaffInfoService.updateById(staffInfo);
158 162 }
159 163  
... ...