| | |
| | | WorkAssignmentMapper workAssignmentMapper; |
| | | |
| | | |
| | | // private final static String ERP_URL = "http://192.168.2.100:8086"; |
| | | private final static String ERP_URL = "http://10.153.19.174:8086"; |
| | | private final static String ERP_URL = "http://192.168.2.100:8086"; |
| | | |
| | | |
| | | /** |
| | |
| | | new LambdaQueryWrapper<Damage>() |
| | | .in(Damage::getType, Const.GLASS_STATE_DAMAGE, Const.GLASS_STATE_TAKE) |
| | | .notIn(Damage::getStatus, 7, 8) |
| | | .lt(Damage::getStatus, 7) |
| | | .eq(Damage::getGlassId, damage.getGlassId()) |
| | | ); |
| | | } else { |
| | |
| | | new LambdaQueryWrapper<Damage>() |
| | | .eq(Damage::getGlassId, glassId) |
| | | .in(Damage::getType, Const.GLASS_STATE_DAMAGE_TAKE) |
| | | .lt(Damage::getStatus, 7) |
| | | ); |
| | | } |
| | | |
| | |
| | | result.put("title", reportingWorkJson); |
| | | |
| | | result.put("type", 0); |
| | | if (reportingWorkDetails.get(0).getDamageDetails().get(0).getPatchStatus() == 1) { |
| | | result.put("isPatch", 1); |
| | | } else { |
| | | result.put("isPatch", 0); |
| | | if (reportingWorkDetails.get(0).getDamageDetails() != null) { |
| | | if (reportingWorkDetails.get(0).getDamageDetails().get(0).getPatchStatus() == 1) { |
| | | result.put("isPatch", 1); |
| | | } else { |
| | | result.put("isPatch", 0); |
| | | } |
| | | } |
| | | result.put("userId", "admin"); |
| | | result.put("userName", "admin"); |