| | |
| | | import com.chinaztt.mes.technology.entity.*; |
| | | import com.chinaztt.mes.technology.excel.RoutingData; |
| | | import com.chinaztt.mes.technology.excel.RoutingExcelData; |
| | | import com.chinaztt.mes.technology.excel.StructureData; |
| | | import com.chinaztt.mes.technology.mapper.*; |
| | | import com.chinaztt.mes.technology.service.RoutingService; |
| | | import com.chinaztt.mes.technology.state.routing.RoutingStateMachineConfig; |
| | |
| | | //结构类型 |
| | | batchinfoJsonObj.put("BOM_TYPE_DB", routingDTO.getBomTypeDb()); |
| | | //启用时间 |
| | | batchinfoJsonObj.put("PHASE_IN_DATE", DateTimeFormatter.ofPattern("yyyyMMdd").format(routingDTO.getPhaseInDate())); |
| | | if (routingDTO.getPhaseOutDate() != null) { |
| | | //弃用时间 |
| | | batchinfoJsonObj.put("PHASE_OUT_DATE", DateTimeFormatter.ofPattern("yyyyMMdd").format(routingDTO.getPhaseOutDate())); |
| | | } |
| | | //batchinfoJsonObj.put("PHASE_IN_DATE", DateTimeFormatter.ofPattern("yyyyMMdd").format(routingDTO.getPhaseInDate())); |
| | | //if (routingDTO.getPhaseOutDate() != null) { |
| | | // //弃用时间 |
| | | // batchinfoJsonObj.put("PHASE_OUT_DATE", DateTimeFormatter.ofPattern("yyyyMMdd").format(routingDTO.getPhaseOutDate())); |
| | | //} |
| | | JSONArray alternateInfo = new JSONArray(); |
| | | JSONObject alobj = new JSONObject() |
| | | .fluentPut("ALTERNATIVE_NO", routingDTO.getAlternativeNo()) |