| | |
| | | return map; |
| | | } |
| | | |
| | | public Map<String, Object> printSetup(PrintSetup printSetup) { |
| | | public Map<String, Object> printFlowCardDetailsSv(String processId, String technologyNumber, FlowCard flowCard) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("data", flowCardMapper.selectPrintSetup(printSetup)); |
| | | map.put("data", flowCardMapper.printFlowCardDetailsMp(processId, technologyNumber, flowCard)); |
| | | return map; |
| | | } |
| | | |
| | | public Boolean updatePrintSetup(Map<String, Object> object) { |
| | | System.out.println(object); |
| | | boolean saveState = true; |
| | | String[] stringList=new String[]{"customerName","orderId","typeName","specifications","project","remarks","glassChild","processingNote"}; |
| | | for(String strings:stringList){ |
| | | if (object.get(strings) != null) { |
| | | if (Objects.equals(object.get(strings).toString(), "true")){ |
| | | flowCardMapper.updatePrintSetup(strings,1); |
| | | }else { |
| | | flowCardMapper.updatePrintSetup(strings,0); |
| | | } |
| | | }else { |
| | | saveState=false; |
| | | public Boolean printSortSv(Map<String, Object> object) { |
| | | List<FlowCard> FlowCardList = JSONArray.parseArray(JSONObject.toJSONString(object.get("flowCard")), FlowCard.class); |
| | | if (!FlowCardList.isEmpty()) { |
| | | for (FlowCard flowCard : FlowCardList) { |
| | | flowCardMapper.printSortMp(flowCard.getProcessId(),flowCard.getOrderNumber(),flowCard.getTechnologyNumber(),flowCard.getSort()); |
| | | } |
| | | } |
| | | return saveState; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |