|
@@ -35,7 +35,7 @@ public class MouldEquipmentController {
|
|
|
* 添加/修改模具设备
|
|
|
* 添加参数:equipmentName 设备名称,useLife 使用年限, equipmentNo 设备编号 ,
|
|
|
* belongCompanyId 所属公司id ,equipmentName 设备名称
|
|
|
- * 修改时需多传的参数 id 设备id ,isUse 是否启用 0-不启用 1-启用
|
|
|
+ * 修改时需多传的参数 id 设备id
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("添加/修改模具设备")
|
|
@@ -50,5 +50,21 @@ public class MouldEquipmentController {
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 启用设备
|
|
|
+ * 传参 id 设备id ,isUse 启用传 1
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("启用设备")
|
|
|
+ @RequestMapping("/use")
|
|
|
+ @ResponseBody
|
|
|
+ public HttpRespMsg use(MouldEquipment mouldEquipment,String token) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ QueryWrapper<User> qw = new QueryWrapper<>();
|
|
|
+ qw.eq("head_imgurl",token);
|
|
|
+ User user = userService.getOne(qw);
|
|
|
+ msg = mouldEquipmentService.isUse(mouldEquipment,user);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|
|
|
|