物资LOG日志修订
This commit is contained in:
parent
38ebf1ded7
commit
7cef74aa24
|
|
@ -44,12 +44,27 @@ public class BmNumLogs extends BaseEntity {
|
|||
@Excel(name = "实例/任务")
|
||||
private String task;
|
||||
|
||||
/**
|
||||
* 任务名称
|
||||
*/
|
||||
private String taskName;
|
||||
|
||||
/**
|
||||
* 规格id
|
||||
*/
|
||||
@Excel(name = "规格id")
|
||||
private Integer typeId;
|
||||
|
||||
/**
|
||||
* 规格名称
|
||||
*/
|
||||
private String typeName;
|
||||
|
||||
/**
|
||||
* 父级规格名称
|
||||
*/
|
||||
private String typeParentName;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ public class BmNumLogsController extends BaseController {
|
|||
private BmNumLogsService bmNumLogsService;
|
||||
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list() {
|
||||
public TableDataInfo list(BmNumLogs record) {
|
||||
startPage();
|
||||
List<BmNumLogs> list = bmNumLogsService.selectAll();
|
||||
List<BmNumLogs> list = bmNumLogsService.selectAll(record);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public interface BmNumLogsMapper {
|
|||
|
||||
BmNumLogs selectByPrimaryKey(Integer id);
|
||||
|
||||
List<BmNumLogs> selectAll();
|
||||
List<BmNumLogs> selectAll(BmNumLogs record);
|
||||
|
||||
int updateByPrimaryKeySelective(BmNumLogs record);
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ public class BmNumLogsService{
|
|||
return bmNumLogsMapper.insert(record);
|
||||
}
|
||||
|
||||
public List<BmNumLogs> selectAll() {
|
||||
return bmNumLogsMapper.selectAll();
|
||||
public List<BmNumLogs> selectAll(BmNumLogs record) {
|
||||
return bmNumLogsMapper.selectAll(record);
|
||||
}
|
||||
|
||||
public int insertSelective(BmNumLogs record) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
<result column="model_title" jdbcType="VARCHAR" property="modelTitle" />
|
||||
<result column="method" jdbcType="VARCHAR" property="method" />
|
||||
<result column="task" jdbcType="VARCHAR" property="task" />
|
||||
<result column="task_name" jdbcType="VARCHAR" property="taskName" />
|
||||
<result column="type_id" jdbcType="INTEGER" property="typeId" />
|
||||
<result column="type_name" jdbcType="VARCHAR" property="typeName" />
|
||||
<result column="type_parent_name" jdbcType="VARCHAR" property="typeParentName" />
|
||||
<result column="num" jdbcType="VARCHAR" property="num" />
|
||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||
<result column="json_result" jdbcType="VARCHAR" property="jsonResult" />
|
||||
|
|
@ -25,18 +28,32 @@
|
|||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from bm_num_logs
|
||||
select
|
||||
bnl.id, bnl.model_title, bnl.`method`, bnl.task, bnl.type_id, bnl.num, bnl.`description`, bnl.json_result, bnl.`time`, bnl.creator,
|
||||
bnl.remark, bnl.`status`, mt.type_name, mt1.type_name as type_parent_name, tt.code as task_name
|
||||
from bm_num_logs bnl
|
||||
left join ma_type mt on bnl.type_id = mt.type_id
|
||||
inner join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
left join tm_task tt on bnl.task = tt.task_id
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectAll" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from bm_num_logs
|
||||
bnl.id, bnl.model_title, bnl.`method`, bnl.task, bnl.type_id, bnl.num, bnl.`description`, bnl.json_result, bnl.`time`, bnl.creator,
|
||||
bnl.remark, bnl.`status`, mt.type_name, mt1.type_name as type_parent_name, tt.code as task_name
|
||||
from bm_num_logs bnl
|
||||
left join ma_type mt on bnl.type_id = mt.type_id
|
||||
inner join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
left join tm_task tt on bnl.task = tt.task_id
|
||||
<where>
|
||||
<if test="modelTitle != null and modelTitle != ''">
|
||||
and bnl.model_title like concat('%', #{modelTitle}, '%')
|
||||
</if>
|
||||
<if test="typeName != null and typeName != ''">
|
||||
and mt1.type_name like concat('%', #{typeName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue