diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/secutiry/MobileAuthorizationController.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/secutiry/MobileAuthorizationController.java index f964ce2..30157e7 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/secutiry/MobileAuthorizationController.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/controller/secutiry/MobileAuthorizationController.java @@ -42,17 +42,16 @@ import java.util.Map; */ @Slf4j @RestController -@RequestMapping("/api/pda") +@RequestMapping("/mobile/auth") @Api(tags = "手持:系统授权接口") public class MobileAuthorizationController { @Autowired private ISysUserService userService; @Autowired private ISysRoleService roleService; - @Autowired - private ISchBasePointService pointService; + @ApiOperation("登录授权") - @PostMapping(value = "/handlogin") + @PostMapping(value = "/login") @SaIgnore public ResponseEntity login(@Validated @RequestBody AuthUserDto authUser, HttpServletRequest request) throws Exception { // 密码解密 - 前端的加密规则: encrypt(根据实际更改) @@ -97,15 +96,4 @@ public class MobileAuthorizationController { return ResponseEntity.ok(authInfo); } - @PostMapping("/point") - @Log("查询设备编号及状态") - @ApiOperation("查询设备编号及状态") - @SaIgnore - //@PreAuthorize("@el.check('sect:list')") - //@RequestBody JSONObject json - public ResponseEntity queryPoint(@RequestBody Map whereJson) { - SchBasePoint region = new SchBasePoint(); - region.setRegion_code(whereJson.get("region_code")); - return new ResponseEntity<>(pointService.getPointList(region), HttpStatus.OK); - } } diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/controller/PdaController.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/controller/PdaController.java index 21a0080..86a91d7 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/controller/PdaController.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/controller/PdaController.java @@ -8,6 +8,9 @@ import lombok.extern.slf4j.Slf4j; import org.nl.common.logging.annotation.Log; import org.nl.wms.pda.service.PdaService; import org.nl.wms.pda.service.dao.vo.PdaResponseVo; +import org.nl.wms.sch.point.service.ISchBasePointService; +import org.nl.wms.sch.point.service.dao.SchBasePoint; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; @@ -18,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; +import java.util.Map; /** * @Author: lyd @@ -34,6 +38,20 @@ public class PdaController { @Resource private PdaService pdaService; + @Autowired + private ISchBasePointService pointService; + + @PostMapping("/point") + @Log("查询设备编号及状态") + @ApiOperation("查询设备编号及状态") + @SaIgnore + //@PreAuthorize("@el.check('sect:list')") + //@RequestBody JSONObject json + public ResponseEntity queryPoint(@RequestBody Map whereJson) { + SchBasePoint region = new SchBasePoint(); + region.setRegion_code(whereJson.get("region_code")); + return new ResponseEntity<>(pointService.getPointList(region), HttpStatus.OK); + } @PostMapping("/yclrk") @Log("原材料入库") diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/dao/dto/ForcedRestingDto.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/dao/dto/ForcedRestingDto.java index 987a165..22ec3b2 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/dao/dto/ForcedRestingDto.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/dao/dto/ForcedRestingDto.java @@ -9,6 +9,6 @@ import lombok.Data; */ @Data public class ForcedRestingDto { - private Integer stand_time; // 静置时间 + private Integer stand_time; // 回温时间(小时) private String group_id; // 组盘标识 } diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dao/PdmBdWorkorder.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dao/PdmBdWorkorder.java index 1149a95..88c893e 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dao/PdmBdWorkorder.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dao/PdmBdWorkorder.java @@ -54,7 +54,7 @@ public class PdmBdWorkorder implements Serializable { @ApiModelProperty(value = "实际结束时间") private String realproduceend_date; - @ApiModelProperty(value = "静置时间(分钟)") + @ApiModelProperty(value = "回温时间(小时)") private Integer standing_time; @ApiModelProperty(value = "点位编码") diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dto/PdmBdWorkorderDto.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dto/PdmBdWorkorderDto.java index 440a270..183e2da 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dto/PdmBdWorkorderDto.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/dto/PdmBdWorkorderDto.java @@ -43,7 +43,7 @@ public class PdmBdWorkorderDto implements Serializable { /** 实际结束时间 */ private String realproduceend_date; - /** 静置时间(分钟) */ + /** 回温时间(小时) */ private BigDecimal standing_time; /** 点位编码 */ diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/SchBaseVehiclematerialgroup.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/SchBaseVehiclematerialgroup.java index a55b662..471b8d1 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/SchBaseVehiclematerialgroup.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dao/SchBaseVehiclematerialgroup.java @@ -56,7 +56,7 @@ public class SchBaseVehiclematerialgroup implements Serializable { @ApiModelProperty(value = "入库时间") private String instorage_time; - @ApiModelProperty(value = "静置时间(分钟)") + @ApiModelProperty(value = "回温时间(小时)") private Integer standing_time; @ApiModelProperty(value = "物料数量") diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupDto.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupDto.java index 9da91f8..e0a1a17 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupDto.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/group/service/dto/SchBaseVehiclematerialgroupDto.java @@ -42,7 +42,7 @@ public class SchBaseVehiclematerialgroupDto implements Serializable { /** 入库时间 */ private String instorage_time; - /** 静置时间(分钟) */ + /** 回温时间(小时) */ private BigDecimal standing_time; /** 物料数量 */ diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLRKTask.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLRKTask.java index 7388377..06cf6ed 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLRKTask.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLRKTask.java @@ -171,13 +171,15 @@ public class YCLRKTask extends AbstractTask { pointService.update(endPointObj); // 要把数据存到组盘表 -> 改造公共方法,返回id //组盘表需要关联外部mes晶棒数据,一对多 - SchBaseVehiclematerialgroup groupEntity = getSchBaseVehiclematerialgroup(taskObj, extGroupData, workorderCode, startPoint, startPointObj); + SchBaseVehiclematerialgroup groupEntity = getSchBaseVehiclematerialgroup(taskObj, extGroupData, workorderCode, endPoint, endPointObj); groupEntity.setVehicle_code(taskObj.getVehicle_code()); groupEntity.setVehicle_type("0"); + groupEntity.setMaterial_weight(extGroupData.getBigDecimal("weight")); vehiclematerialgroupService.save(groupEntity); groupEntity.setGroup_id(IdUtil.getSnowflake(1, 1).nextIdStr()); groupEntity.setVehicle_code(taskObj.getVehicle_code2()); groupEntity.setVehicle_type("1"); + groupEntity.setMaterial_weight(extGroupData.getBigDecimal("weight")); vehiclematerialgroupService.save(groupEntity); // 任务完成 taskObj.setTask_status(TaskStatus.FINISHED.getCode()); diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/mapper/PointMapper.xml b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/mapper/PointMapper.xml index 407844d..979d1c9 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/mapper/PointMapper.xml +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/mapper/PointMapper.xml @@ -7,7 +7,7 @@ FROM `sch_base_point` p WHERE p.region_code like CONCAT('%', #{regionCode}, '%') - and p.is_used = #{point_status} and p.is_used = 1 + and p.point_status = #{point_status} and p.is_used = 1 ORDER BY region_code diff --git a/lms/nladmin-ui/src/views/wms/basedata/material/index.vue b/lms/nladmin-ui/src/views/wms/basedata/material/index.vue index 0f93777..2791580 100644 --- a/lms/nladmin-ui/src/views/wms/basedata/material/index.vue +++ b/lms/nladmin-ui/src/views/wms/basedata/material/index.vue @@ -54,7 +54,7 @@ - + @@ -76,7 +76,7 @@ - + diff --git a/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue b/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue index 988aacc..b857d89 100644 --- a/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue +++ b/lms/nladmin-ui/src/views/wms/pdm/workerorder/index.vue @@ -188,7 +188,7 @@ - + - - + + diff --git a/lms/nladmin-ui/src/views/wms/sch/material/MaterialDialog.vue b/lms/nladmin-ui/src/views/wms/sch/material/MaterialDialog.vue index 60f663b..6c8db8c 100644 --- a/lms/nladmin-ui/src/views/wms/sch/material/MaterialDialog.vue +++ b/lms/nladmin-ui/src/views/wms/sch/material/MaterialDialog.vue @@ -58,7 +58,7 @@ - + diff --git a/lms/nladmin-ui/src/views/wms/sch/point/ViewDialog.vue b/lms/nladmin-ui/src/views/wms/sch/point/ViewDialog.vue index c1636ef..0b741cc 100644 --- a/lms/nladmin-ui/src/views/wms/sch/point/ViewDialog.vue +++ b/lms/nladmin-ui/src/views/wms/sch/point/ViewDialog.vue @@ -75,7 +75,7 @@ - +