问题修改
This commit is contained in:
parent
8c16a8b9e7
commit
1e1db1892d
|
|
@ -125,6 +125,49 @@
|
||||||
or mtv.maxTypeId = #{typeId}
|
or mtv.maxTypeId = #{typeId}
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="companyName != null and companyName !=''">
|
||||||
|
and c.company_name like concat('%',#{companyName},'%')
|
||||||
|
</if>
|
||||||
|
<if test="onProject != null and onProject !=''">
|
||||||
|
and mdi.on_project like concat('%',#{onProject},'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="deviceName != null and deviceName !=''">
|
||||||
|
and mtv.devName like concat('%',#{deviceName},'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="code != null and code !=''">
|
||||||
|
and mdi.`code` like concat('%',#{code},'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="changeStatus != null and changeStatus !=''">
|
||||||
|
and mdi.ma_status like concat('%',#{changeStatus},'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="brand != null and brand !=''">
|
||||||
|
and mdi.brand like concat('%',#{brand},'%')
|
||||||
|
</if>
|
||||||
|
<if test="productionDate != null and productionDate !=''">
|
||||||
|
and mdi.production_date like concat('%',#{brand},'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="workingHours != null and workingHours !=''">
|
||||||
|
and mdi.working_hours like concat('%',#{workingHours},'%')
|
||||||
|
</if>
|
||||||
|
<if test="buyPrice != null and buyPrice !=''">
|
||||||
|
and mdi.buy_price like concat('%',#{buyPrice},'%')
|
||||||
|
</if>
|
||||||
|
<if test="nextCheckTime != null and nextCheckTime !=''">
|
||||||
|
and mdq.next_check_time like concat('%',#{nextCheckTime},'%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateDeviceStatus">
|
<update id="updateDeviceStatus">
|
||||||
|
|
@ -141,13 +184,11 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="deviceTree" resultType="com.bonus.material.devchange.domain.DeviceTreeBean">
|
<select id="deviceTree" resultType="com.bonus.material.devchange.domain.DeviceTreeBean">
|
||||||
SELECT
|
SELECT mt.type_id as id,
|
||||||
mt.type_id as id,
|
|
||||||
mt.type_name as name,
|
mt.type_name as name,
|
||||||
mt.level,
|
mt.level,
|
||||||
mt.parent_id as pId
|
mt.parent_id as pId
|
||||||
FROM
|
FROM ma_type mt
|
||||||
ma_type mt
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="deviceCount" resultType="com.bonus.material.devchange.domain.DeviceCountBean">
|
<select id="deviceCount" resultType="com.bonus.material.devchange.domain.DeviceCountBean">
|
||||||
|
|
@ -183,11 +224,9 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="deviceLocationSel" resultType="com.bonus.material.devchange.domain.MapBean">
|
<select id="deviceLocationSel" resultType="com.bonus.material.devchange.domain.MapBean">
|
||||||
SELECT
|
SELECT '0' as `key`,
|
||||||
'0' as `key`,
|
|
||||||
location as `value`
|
location as `value`
|
||||||
FROM
|
FROM ma_dev_info
|
||||||
ma_dev_info
|
|
||||||
WHERE is_active = 1
|
WHERE is_active = 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
and d.is_active='1'
|
and d.is_active='1'
|
||||||
|
and d.up_down_status ='1'
|
||||||
</where>
|
</where>
|
||||||
order by
|
order by
|
||||||
d.is_active
|
d.is_active
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue