Merge branch 'master' of http://git.picaiba.com/CaiXiang/SPC
Conflicts: ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java ym-influx/src/main/java/com/cnbm/influx/Main.java
This commit is contained in:
commit
1477d05a69
@ -64,14 +64,6 @@ public class FactoryController {
|
|||||||
return new Result<FactoryDTO>().ok(data);
|
return new Result<FactoryDTO>().ok(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
|
||||||
@ApiOperation("改变状态")
|
|
||||||
@LogOperation("改变状态")
|
|
||||||
public Result changeStatus(@PathVariable("id") Long id){
|
|
||||||
factoryService.changeStatus(id);
|
|
||||||
return new Result();
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@ApiOperation("保存")
|
@ApiOperation("保存")
|
||||||
@LogOperation("保存")
|
@LogOperation("保存")
|
||||||
@ -121,6 +113,13 @@ public class FactoryController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, FactoryExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, FactoryExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("{statusId}")
|
||||||
|
@ApiOperation("改变状态")
|
||||||
|
@LogOperation("改变状态")
|
||||||
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
factoryService.changeStatus(id);
|
||||||
|
|
||||||
|
return new Result();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -113,4 +113,13 @@ public class MachineController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, MachineExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, MachineExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("{statusId}")
|
||||||
|
@ApiOperation("改变状态")
|
||||||
|
@LogOperation("改变状态")
|
||||||
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
machineService.changeStatus(id);
|
||||||
|
|
||||||
|
return new Result();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -113,7 +113,7 @@ public class MeasureToolController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, MeasureToolExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, MeasureToolExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{statusId}")
|
||||||
@ApiOperation("改变状态")
|
@ApiOperation("改变状态")
|
||||||
@LogOperation("改变状态")
|
@LogOperation("改变状态")
|
||||||
public Result changeStatus(@PathVariable("id") Long id){
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
@ -113,4 +113,13 @@ public class PlatformController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, PlatformExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, PlatformExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("{statusId}")
|
||||||
|
@ApiOperation("改变状态")
|
||||||
|
@LogOperation("改变状态")
|
||||||
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
platformService.changeStatus(id);
|
||||||
|
|
||||||
|
return new Result();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -114,7 +114,7 @@ public class ProductTypeController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, ProductTypeExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, ProductTypeExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{statusId}")
|
||||||
@ApiOperation("改变状态")
|
@ApiOperation("改变状态")
|
||||||
@LogOperation("改变状态")
|
@LogOperation("改变状态")
|
||||||
public Result changeStatus(@PathVariable("id") Long id){
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
@ -113,7 +113,7 @@ public class UnitController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, UnitExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, UnitExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("{id}")
|
@GetMapping("{statusId}")
|
||||||
@ApiOperation("改变状态")
|
@ApiOperation("改变状态")
|
||||||
@LogOperation("改变状态")
|
@LogOperation("改变状态")
|
||||||
public Result changeStatus(@PathVariable("id") Long id){
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
@ -113,4 +113,13 @@ public class WorkingProcedureController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, WorkingProcedureExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, WorkingProcedureExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("{statusId}")
|
||||||
|
@ApiOperation("改变状态")
|
||||||
|
@LogOperation("改变状态")
|
||||||
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
workingProcedureService.changeStatus(id);
|
||||||
|
|
||||||
|
return new Result();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -113,4 +113,13 @@ public class WorkingProcedureTypeController {
|
|||||||
ExcelUtils.exportExcelToTarget(response, null, list, WorkingProcedureTypeExcel.class);
|
ExcelUtils.exportExcelToTarget(response, null, list, WorkingProcedureTypeExcel.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("{statusId}")
|
||||||
|
@ApiOperation("改变状态")
|
||||||
|
@LogOperation("改变状态")
|
||||||
|
public Result changeStatus(@PathVariable("id") Long id){
|
||||||
|
workingProcedureTypeService.changeStatus(id);
|
||||||
|
|
||||||
|
return new Result();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,75 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.cnbm.basic.mapper.ProductTypeMapper">
|
|
||||||
<sql id="Base_Column_List">
|
|
||||||
id,
|
|
||||||
`name`,
|
|
||||||
code,
|
|
||||||
descs,
|
|
||||||
`status`,
|
|
||||||
remark,
|
|
||||||
`valid`,
|
|
||||||
creator_id,
|
|
||||||
creator_name,
|
|
||||||
create_time,
|
|
||||||
updater_id,
|
|
||||||
updater_name,
|
|
||||||
update_time,
|
|
||||||
version
|
|
||||||
</sql>
|
|
||||||
<resultMap id="BaseResultMap" type="com.cnbm.basic.entity.ProductType">
|
|
||||||
<result column="id" property="id"/>
|
|
||||||
<result column="name" property="name"/>
|
|
||||||
<result column="code" property="code"/>
|
|
||||||
<result column="descs" property="descs"/>
|
|
||||||
<result column="status" property="status"/>
|
|
||||||
<result column="remark" property="remark"/>
|
|
||||||
<result column="valid" property="valid"/>
|
|
||||||
<result column="creator_id" property="creatorId"/>
|
|
||||||
<result column="creator_name" property="creatorName"/>
|
|
||||||
<result column="create_time" property="createTime"/>
|
|
||||||
<result column="updater_id" property="updaterId"/>
|
|
||||||
<result column="updater_name" property="updaterName"/>
|
|
||||||
<result column="update_time" property="updateTime"/>
|
|
||||||
<result column="version" property="version"/>
|
|
||||||
</resultMap>
|
|
||||||
|
|
||||||
<!--auto generated by MybatisCodeHelper on 2022-07-05-->
|
|
||||||
<insert id="insertList">
|
|
||||||
INSERT INTO product_type(
|
|
||||||
id,
|
|
||||||
name,
|
|
||||||
code,
|
|
||||||
descs,
|
|
||||||
status,
|
|
||||||
remark,
|
|
||||||
valid,
|
|
||||||
creator_id,
|
|
||||||
creator_name,
|
|
||||||
create_time,
|
|
||||||
updater_id,
|
|
||||||
updater_name,
|
|
||||||
update_time,
|
|
||||||
version
|
|
||||||
)VALUES
|
|
||||||
<foreach collection="list" item="element" index="index" separator=",">
|
|
||||||
(
|
|
||||||
#{element.id},
|
|
||||||
#{element.name},
|
|
||||||
#{element.code},
|
|
||||||
#{element.descs},
|
|
||||||
#{element.status},
|
|
||||||
#{element.remark},
|
|
||||||
#{element.valid},
|
|
||||||
#{element.creatorId},
|
|
||||||
#{element.creatorName},
|
|
||||||
#{element.createTime},
|
|
||||||
#{element.updaterId},
|
|
||||||
#{element.updaterName},
|
|
||||||
#{element.updateTime},
|
|
||||||
#{element.version}
|
|
||||||
)
|
|
||||||
</foreach>
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
</mapper>
|
|
@ -65,7 +65,7 @@ public class WorkingProcedureServiceImpl extends CrudServiceImpl<WorkingProcedur
|
|||||||
workingProcedureDTO.setWorkingProcedureTypeName(workingProcedureTypeName);
|
workingProcedureDTO.setWorkingProcedureTypeName(workingProcedureTypeName);
|
||||||
if(StringUtils.isNotBlank(workingProcedureDTO.getMachineId())){
|
if(StringUtils.isNotBlank(workingProcedureDTO.getMachineId())){
|
||||||
String[] machineIdList = workingProcedureDTO.getMachineId().split(",");
|
String[] machineIdList = workingProcedureDTO.getMachineId().split(",");
|
||||||
List<String> machineList = new ArrayList<>();
|
ArrayList<String> machineList = new ArrayList<>();
|
||||||
for(String machineId:machineIdList){
|
for(String machineId:machineIdList){
|
||||||
//QueryWrapper<Machine> machineQueryWrapper = new QueryWrapper<>();
|
//QueryWrapper<Machine> machineQueryWrapper = new QueryWrapper<>();
|
||||||
//machineQueryWrapper.eq(StringUtils.isNotBlank(machineId), "id", machineId);
|
//machineQueryWrapper.eq(StringUtils.isNotBlank(machineId), "id", machineId);
|
||||||
|
Loading…
Reference in New Issue
Block a user