Merge pull request 'status' (#3) from yanyang into master

Reviewed-on: #3
This commit is contained in:
蔡翔 2022-07-21 09:49:21 +08:00
commit 4cfd541f06
12 changed files with 41 additions and 81 deletions

View File

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

View File

@ -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();
}
}

View File

@ -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){

View File

@ -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();
}
}

View File

@ -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){

View File

@ -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){

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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>

View File

@ -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);

View File

@ -2,7 +2,6 @@ package com.cnbm.influx;
import com.cnbm.influx.config.InfluxClient;
import com.cnbm.influx.param.QueryDataParam;
import com.cnbm.influx.common.Utils;
import com.cnbm.influx.param.PageInfo;
import com.cnbm.influx.param.Range;
import com.cnbm.influx.param.Tag;