|
@@ -2,8 +2,11 @@ package com.hssx.cloudmodel.controller;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
+import com.hssx.cloudmodel.entity.Company;
|
|
import com.hssx.cloudmodel.entity.Mould;
|
|
import com.hssx.cloudmodel.entity.Mould;
|
|
import com.hssx.cloudmodel.entity.User;
|
|
import com.hssx.cloudmodel.entity.User;
|
|
|
|
+import com.hssx.cloudmodel.mapper.CompanyMapper;
|
|
|
|
+import com.hssx.cloudmodel.service.CompanyService;
|
|
import com.hssx.cloudmodel.service.MouldService;
|
|
import com.hssx.cloudmodel.service.MouldService;
|
|
import com.hssx.cloudmodel.service.UserService;
|
|
import com.hssx.cloudmodel.service.UserService;
|
|
import com.hssx.cloudmodel.util.HttpRespMsg;
|
|
import com.hssx.cloudmodel.util.HttpRespMsg;
|
|
@@ -24,12 +27,14 @@ public class MouldController {
|
|
private MouldService mouldService;
|
|
private MouldService mouldService;
|
|
@Autowired
|
|
@Autowired
|
|
private UserService userService;
|
|
private UserService userService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private CompanyService companyService;
|
|
/**
|
|
/**
|
|
* 添加/修改模具设备
|
|
* 添加/修改模具设备
|
|
- * 添加参数:equipmentId 设备id, modelNo 模具编号
|
|
|
|
- * 修改参数:id 模具id, modelName 模具名称,settingLife 使用年限, initialModulus 初始模次 equipmentId 设备id,
|
|
|
|
|
|
+ * 添加参数:equipmentId 设备id, modelNo 模具编号 ,belongCompanyId 所属公司id,modelName 模具名称
|
|
|
|
+ * 修改参数:id 模具id, settingLife 使用年限, initialModulus 初始模次 equipmentId 设备id,
|
|
* produceCompanyId 生产方公司id,ocCycle 每模平均周期,rfid rfid码,area 工厂地址,factoryId 工厂id,factoryName 工厂名称
|
|
* produceCompanyId 生产方公司id,ocCycle 每模平均周期,rfid rfid码,area 工厂地址,factoryId 工厂id,factoryName 工厂名称
|
|
- * belongCompanyId 所属公司id ,equipmentName 设备名称
|
|
|
|
|
|
+ * equipmentName 设备名称
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@ApiOperation("添加/修改模具")
|
|
@ApiOperation("添加/修改模具")
|
|
@@ -43,5 +48,19 @@ public class MouldController {
|
|
msg = mouldService.addAndUpdateMould(mould,user);
|
|
msg = mouldService.addAndUpdateMould(mould,user);
|
|
return msg;
|
|
return msg;
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * 创建模具获取的(资产方)公司列表
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation("创建模具获取的公司列表")
|
|
|
|
+ @RequestMapping("/getcompanys")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public HttpRespMsg getcompanys() {
|
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
|
+ QueryWrapper<Company> qw = new QueryWrapper<>();
|
|
|
|
+ qw.eq("company_type",0);
|
|
|
|
+ msg.data = companyService.list(qw);
|
|
|
|
+ return msg;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|