Commit 7197d7bd authored by KeYong's avatar KeYong

Merge remote-tracking branch 'origin/develop_dl' into develop_dl

parents f96a6142 fabcae4b
...@@ -78,4 +78,8 @@ public class EquipTypeAmountPageDTO extends BaseDTO<EquipmentSpecific> { ...@@ -78,4 +78,8 @@ public class EquipTypeAmountPageDTO extends BaseDTO<EquipmentSpecific> {
@ApiModelProperty(value = "车牌号") @ApiModelProperty(value = "车牌号")
private String carNum; private String carNum;
@ApiModelProperty(value = "设备红黄绿码状态")
private String equipStatus;
} }
...@@ -69,4 +69,8 @@ public class EquipTypeImgAmountVO { ...@@ -69,4 +69,8 @@ public class EquipTypeImgAmountVO {
@ApiModelProperty(value = "车牌号") @ApiModelProperty(value = "车牌号")
private String carNum; private String carNum;
@ApiModelProperty(value = "分类名称/车或者装备")
private String systemType;
} }
...@@ -129,4 +129,6 @@ public class EquipmentManageVo implements Serializable { ...@@ -129,4 +129,6 @@ public class EquipmentManageVo implements Serializable {
private String fullName; private String fullName;
private String categoryCode; private String categoryCode;
private String systemStatus;
} }
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
sys.code as code, sys.code as code,
sys.form_group_id, sys.form_group_id,
sys.instance_id, sys.instance_id,
sys.system_status as systemStatus,
date_format(sys.install_date,'%Y-%m-%d') AS installDate, date_format(sys.install_date,'%Y-%m-%d') AS installDate,
date_format(sys.first_maintenance_date,'%Y-%m-%d') AS firstMaintenanceDate, date_format(sys.first_maintenance_date,'%Y-%m-%d') AS firstMaintenanceDate,
sys.charge_person_name as chargePerson, sys.charge_person_name as chargePerson,
...@@ -56,7 +57,7 @@ ...@@ -56,7 +57,7 @@
<if test="formGroupId != null and formGroupId != '' and formGroupId != '-1'"> <if test="formGroupId != null and formGroupId != '' and formGroupId != '-1'">
AND sys.form_group_id = #{formGroupId} AND sys.form_group_id = #{formGroupId}
</if> </if>
order by sys.id DESC order by CONVERT(sys.biz_org_name USING gbk) ASC, sys.system_status DESC
LIMIT #{spage},#{pageSize} LIMIT #{spage},#{pageSize}
</select> </select>
<select id="queryEquipmenCount" resultType="long"> <select id="queryEquipmenCount" resultType="long">
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<result property="status" column="status"></result> <result property="status" column="status"></result>
<result property="type" column="type"></result> <result property="type" column="type"></result>
<result property="code" column="code"></result> <result property="code" column="code"></result>
<result property="systemType" column="systemType"></result>
<result property="iotCode" column="iotCode"></result> <result property="iotCode" column="iotCode"></result>
<result property="eqtype" column="eqtype"></result> <result property="eqtype" column="eqtype"></result>
<result property="bizOrgCode" column="bizOrgCode"></result> <result property="bizOrgCode" column="bizOrgCode"></result>
...@@ -1869,6 +1870,7 @@ ...@@ -1869,6 +1870,7 @@
wlc.standard, wlc.standard,
wle.img, wle.img,
wlc.`NAME` equipmentName, wlc.`NAME` equipmentName,
wec.name as systemType,
NULL AS full_name, NULL AS full_name,
wlun.NAME unitName, wlun.NAME unitName,
NULL AS systemName, NULL AS systemName,
...@@ -1932,6 +1934,9 @@ ...@@ -1932,6 +1934,9 @@
<if test="equipTypeAmountPage.carNum!=null and equipTypeAmountPage.carNum!=''"> <if test="equipTypeAmountPage.carNum!=null and equipTypeAmountPage.carNum!=''">
And wlc.car_num LIKE CONCAT('%',#{equipTypeAmountPage.carNum},'%') And wlc.car_num LIKE CONCAT('%',#{equipTypeAmountPage.carNum},'%')
</if> </if>
<if test="equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''">
And wlc.equip_status = #{equipTypeAmountPage.equipStatus}
</if>
<if test="equipTypeAmountPage.keyword!=null and equipTypeAmountPage.keyword!=''"> <if test="equipTypeAmountPage.keyword!=null and equipTypeAmountPage.keyword!=''">
And (wlc.`NAME` LIKE CONCAT('%',#{equipTypeAmountPage.keyword},'%') OR wlc.car_num LIKE CONCAT('%',#{equipTypeAmountPage.keyword},'%')) And (wlc.`NAME` LIKE CONCAT('%',#{equipTypeAmountPage.keyword},'%') OR wlc.car_num LIKE CONCAT('%',#{equipTypeAmountPage.keyword},'%'))
</if> </if>
...@@ -1960,6 +1965,7 @@ ...@@ -1960,6 +1965,7 @@
wled.standard, wled.standard,
wle.img, wle.img,
wles.name equipmentName, wles.name equipmentName,
wec.name as systemType,
concat_ws('-',wlws.full_name,wled.area) as full_name, concat_ws('-',wlws.full_name,wled.area) as full_name,
wlws.name as belongBuildName, wlws.name as belongBuildName,
wlun.NAME unitName, wlun.NAME unitName,
...@@ -1997,8 +2003,7 @@ ...@@ -1997,8 +2003,7 @@
LEFT JOIN wl_equipment_category wec ON wle.category_id = wec.id LEFT JOIN wl_equipment_category wec ON wle.category_id = wec.id
WHERE 1=1 WHERE 1=1
<if test="codeHead!=null and codeHead!='' and codeHead!=' '"> <if test="codeHead!=null and codeHead!='' and codeHead!=' '">
<!-- and LEFT (wle.CODE, #{hierarchy}) = #{codeHead}--> and wec.`code` like concat(LEFT(#{codeHead}, #{hierarchy}), '%')
and wec.`code` like concat(#{codeHead}, '%')
</if> </if>
<if test="equipTypeAmountPage.industryCode!=null"> <if test="equipTypeAmountPage.industryCode!=null">
and wec.industry_code = #{equipTypeAmountPage.industryCode} and wec.industry_code = #{equipTypeAmountPage.industryCode}
...@@ -2033,6 +2038,9 @@ ...@@ -2033,6 +2038,9 @@
<if test="equipTypeAmountPage.status == 0"> <if test="equipTypeAmountPage.status == 0">
and wlsd.warehouse_structure_id is not null and wlsd.warehouse_structure_id is not null
</if> </if>
<if test="equipTypeAmountPage.equipStatus!=null and equipTypeAmountPage.equipStatus!=''">
and wlsd.equip_status = #{equipTypeAmountPage.equipStatus}
</if>
<if test="equipTypeAmountPage.equipmentName!=null and equipTypeAmountPage.equipmentName!=''"> <if test="equipTypeAmountPage.equipmentName!=null and equipTypeAmountPage.equipmentName!=''">
AND wled.name LIKE CONCAT('%',#{equipTypeAmountPage.equipmentName},'%') AND wled.name LIKE CONCAT('%',#{equipTypeAmountPage.equipmentName},'%')
</if> </if>
...@@ -2053,7 +2061,7 @@ ...@@ -2053,7 +2061,7 @@
<if test="equipTypeAmountPage.bizOrgCode!=null and equipTypeAmountPage.bizOrgCode!=''"> <if test="equipTypeAmountPage.bizOrgCode!=null and equipTypeAmountPage.bizOrgCode!=''">
AND s1.bizOrgCode LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%') AND s1.bizOrgCode LIKE CONCAT(#{equipTypeAmountPage.bizOrgCode},'%')
</if> </if>
order by createDate DESC order by CONVERT(bizOrgName USING gbk) ASC, equipStatus DESC ,createDate DESC
</select> </select>
<select id="listByBizOrgCode" resultType="java.util.Map"> <select id="listByBizOrgCode" resultType="java.util.Map">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment