Parcourir la source

优化考勤人员信息

Your Name il y a 3 ans
Parent
commit
04485e83fd

+ 3 - 1
service-common/src/main/java/com/java110/common/cmd/machine/UpdateMachineCmd.java

@@ -95,7 +95,9 @@ public class UpdateMachineCmd extends Cmd {
     public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
     public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
         MachinePo machinePo = BeanConvertUtil.covertBean(reqJson, MachinePo.class);
         MachinePo machinePo = BeanConvertUtil.covertBean(reqJson, MachinePo.class);
 
 
-        if (!MachineDto.MACHINE_TYPE_MONITOR.equals(reqJson.getString("machineTypeCd"))) {
+        if (!MachineDto.MACHINE_TYPE_MONITOR.equals(reqJson.getString("machineTypeCd"))
+                && !MachineDto.MACHINE_TYPE_ATTENDANCE.equals(reqJson.getString("machineTypeCd"))
+        ) {
             CommunityLocationDto communityLocationDto = new CommunityLocationDto();
             CommunityLocationDto communityLocationDto = new CommunityLocationDto();
             communityLocationDto.setCommunityId(reqJson.getString("communityId"));
             communityLocationDto.setCommunityId(reqJson.getString("communityId"));
             communityLocationDto.setLocationId(reqJson.getString("locationTypeCd"));
             communityLocationDto.setLocationId(reqJson.getString("locationTypeCd"));