| | |
| | | DocType docType = docTypeService.selectById(param.getDocType()); |
| | | if(!Cools.isEmpty(docType)){ |
| | | prefix = docType.getPakin() == 1 ? "RK" : "CK"; |
| | | status = (prefix == "RK" ? 1 : (prefix == "CK" ? 2 : 0)); |
| | | status = (prefix.equals("RK") ? 1 : (prefix.equals("CK") ? 2 : 0)); |
| | | } |
| | | param.setOrderNo(prefix + snowflakeIdWorker.nextId()); |
| | | } else { |
| | | DocType docType = docTypeService.selectById(param.getDocType()); |
| | | if(!Cools.isEmpty(docType)){ |
| | | status = (docType.getPakin() == 1 ? 1 : 2 ); |
| | | } |
| | | } |
| | | |
| | | Order order = orderService.selectByNo(param.getOrderNo()); |