| | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.example.erp.entity.pp.FlowCard; |
| | | import com.example.erp.entity.pp.PrintSetup; |
| | | import com.example.erp.entity.pp.ProductionScheduling; |
| | | import com.example.erp.entity.sd.OrderGlassDetail; |
| | | import com.example.erp.entity.sd.OrderProcessDetail; |
| | |
| | | return true; |
| | | } |
| | | |
| | | public Map<String, Object> printSetup(PrintSetup printSetup) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("data", flowCardMapper.selectPrintSetup(printSetup)); |
| | | 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; |
| | | } |
| | | } |
| | | return saveState; |
| | | } |
| | | |
| | | } |
| | | |