Conflicts:
	ym-baisc/src/main/java/com/cnbm/basic/controller/FactoryController.java
	ym-influx/src/main/java/com/cnbm/influx/Main.java
这个提交包含在:
caixiang 2022-07-21 09:50:48 +08:00
当前提交 1477d05a69
共有 11 个文件被更改,包括 47 次插入87 次删除

查看文件

@ -64,14 +64,6 @@ public class FactoryController {
return new Result<FactoryDTO>().ok(data);
}
@GetMapping("{id}")
@ApiOperation("改变状态")
@LogOperation("改变状态")
public Result changeStatus(@PathVariable("id") Long id){
factoryService.changeStatus(id);
return new Result();
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@ -121,6 +113,13 @@ public class FactoryController {
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);
}
@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);
}
@GetMapping("{id}")
@GetMapping("{statusId}")
@ApiOperation("改变状态")
@LogOperation("改变状态")
public Result changeStatus(@PathVariable("id") Long id){

查看文件

@ -113,4 +113,13 @@ public class PlatformController {
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);
}
@GetMapping("{id}")
@GetMapping("{statusId}")
@ApiOperation("改变状态")
@LogOperation("改变状态")
public Result changeStatus(@PathVariable("id") Long id){

查看文件

@ -113,7 +113,7 @@ public class UnitController {
ExcelUtils.exportExcelToTarget(response, null, list, UnitExcel.class);
}
@GetMapping("{id}")
@GetMapping("{statusId}")
@ApiOperation("改变状态")
@LogOperation("改变状态")
public Result changeStatus(@PathVariable("id") Long id){

查看文件

@ -113,4 +113,13 @@ public class WorkingProcedureController {
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);
}
@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);
if(StringUtils.isNotBlank(workingProcedureDTO.getMachineId())){
String[] machineIdList = workingProcedureDTO.getMachineId().split(",");
List<String> machineList = new ArrayList<>();
ArrayList<String> machineList = new ArrayList<>();
for(String machineId:machineIdList){
//QueryWrapper<Machine> machineQueryWrapper = new QueryWrapper<>();
//machineQueryWrapper.eq(StringUtils.isNotBlank(machineId), "id", machineId);