修改
This commit is contained in:
parent
8c68f0b7c0
commit
2fbbcb0daa
@ -62,4 +62,7 @@ public class InspectionEquInfo extends TenantBaseDO
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private Map<String,Object> params;
|
private Map<String,Object> params;
|
||||||
|
|
||||||
|
/** 设备类别(字典:ins_equ_type) */
|
||||||
|
private String type;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectInspectionEquInfoList" parameterType="cn.iocoder.yudao.module.inspection.entity.InspectionEquInfo" resultType="cn.iocoder.yudao.module.inspection.entity.InspectionEquInfo">
|
<select id="selectInspectionEquInfoList" parameterType="cn.iocoder.yudao.module.inspection.entity.InspectionEquInfo" resultType="cn.iocoder.yudao.module.inspection.entity.InspectionEquInfo">
|
||||||
select * from inspection_equ_info
|
select * from inspection_equ_info
|
||||||
<where>
|
<where>
|
||||||
<if test="inspectionEquInfo.equName != null and inspectionEquInfo.equName != ''"> and equ_name like concat('%', #{inspectionEquInfo.equName}, '%')</if>
|
<if test="inspectionEquInfo.equName != null and inspectionEquInfo.equName != ''">and equ_name like
|
||||||
<if test="inspectionEquInfo.equModel != null and inspectionEquInfo.equModel != ''"> and equ_model like concat('%', #{inspectionEquInfo.equModel}, '%')</if>
|
concat('%', #{inspectionEquInfo.equName}, '%')
|
||||||
<if test="inspectionEquInfo.equNumber != null and inspectionEquInfo.equNumber != ''"> and equ_number like concat('%', #{inspectionEquInfo.equNumber}, '%')</if>
|
</if>
|
||||||
|
<if test="inspectionEquInfo.equModel != null and inspectionEquInfo.equModel != ''">and equ_model like
|
||||||
|
concat('%', #{inspectionEquInfo.equModel}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="inspectionEquInfo.equNumber != null and inspectionEquInfo.equNumber != ''">and equ_number like
|
||||||
|
concat('%', #{inspectionEquInfo.equNumber}, '%')
|
||||||
|
</if>
|
||||||
<if test="inspectionEquInfo.params.beginNextCheckTime != null and inspectionEquInfo.params.beginNextCheckTime != '' and params.endNextCheckTime != null and params.endNextCheckTime != ''">
|
<if test="inspectionEquInfo.params.beginNextCheckTime != null and inspectionEquInfo.params.beginNextCheckTime != '' and params.endNextCheckTime != null and params.endNextCheckTime != ''">
|
||||||
and next_check_time between #{inspectionEquInfo.params.beginNextCheckTime} and #{inspectionEquInfo.params.endNextCheckTime}</if>
|
and next_check_time between #{inspectionEquInfo.params.beginNextCheckTime} and
|
||||||
|
#{inspectionEquInfo.params.endNextCheckTime}
|
||||||
|
</if>
|
||||||
|
<if test="inspectionEquInfo.type != null and inspectionEquInfo.type != ''">
|
||||||
|
and `type` = #{inspectionEquInfo.type}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user