| | |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | MachinePo machinePo = BeanConvertUtil.covertBean(reqJson, MachinePo.class); |
| | | machinePo.setLocationObjId(locationDtos.get(0).getLocationObjId()); |
| | | machinePo.setMachineId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | machinePo.setHeartbeatTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | int flag = machineV1InnerServiceSMOImpl.saveMachine(machinePo); |
| | | |
| | | if (flag < 1) { |