|
|
|
@ -8,10 +8,6 @@
|
|
|
|
|
<result column="SITE" property="site" />
|
|
|
|
|
<result column="RESRCE" property="resrce" />
|
|
|
|
|
<result column="STATUS" property="status" />
|
|
|
|
|
<result column="DATE_TIME" property="dateTime" />
|
|
|
|
|
<result column="CHANGE_STATUS" property="changeStatus" />
|
|
|
|
|
<result column="CHANGE_DATE_TIME" property="changeDateTime" />
|
|
|
|
|
<result column="INTERVAL_TIME" property="intervalTime" />
|
|
|
|
|
<result column="CREATE_USER" property="createUser" />
|
|
|
|
|
<result column="CREATED_DATE_TIME" property="createdDateTime" />
|
|
|
|
|
<result column="MODIFY_USER" property="modifyUser" />
|
|
|
|
@ -20,7 +16,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
HANDLE, SITE, RESRCE, STATUS, DATE_TIME, CHANGE_STATUS, CHANGE_DATE_TIME, INTERVAL_TIME, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
|
|
|
|
|
HANDLE, SITE, RESRCE, STATUS, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<!-- BaseMapper标准查询/修改/删除 -->
|
|
|
|
@ -58,10 +54,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -80,10 +72,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -110,10 +98,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -140,10 +124,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -170,10 +150,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -200,10 +176,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -230,10 +202,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -256,10 +224,6 @@
|
|
|
|
|
<if test="site!=null">SITE,</if>
|
|
|
|
|
<if test="resrce!=null">RESRCE,</if>
|
|
|
|
|
<if test="status!=null">STATUS,</if>
|
|
|
|
|
<if test="dateTime!=null">DATE_TIME,</if>
|
|
|
|
|
<if test="changeStatus!=null">CHANGE_STATUS,</if>
|
|
|
|
|
<if test="changeDateTime!=null">CHANGE_DATE_TIME,</if>
|
|
|
|
|
<if test="intervalTime!=null">INTERVAL_TIME,</if>
|
|
|
|
|
<if test="createUser!=null">CREATE_USER,</if>
|
|
|
|
|
<if test="createdDateTime!=null">CREATED_DATE_TIME,</if>
|
|
|
|
|
<if test="modifyUser!=null">MODIFY_USER,</if>
|
|
|
|
@ -270,10 +234,6 @@
|
|
|
|
|
<if test="site!=null">#{site},</if>
|
|
|
|
|
<if test="resrce!=null">#{resrce},</if>
|
|
|
|
|
<if test="status!=null">#{status},</if>
|
|
|
|
|
<if test="dateTime!=null">#{dateTime},</if>
|
|
|
|
|
<if test="changeStatus!=null">#{changeStatus},</if>
|
|
|
|
|
<if test="changeDateTime!=null">#{changeDateTime},</if>
|
|
|
|
|
<if test="intervalTime!=null">#{intervalTime},</if>
|
|
|
|
|
<if test="createUser!=null">#{createUser},</if>
|
|
|
|
|
<if test="createdDateTime!=null">#{createdDateTime},</if>
|
|
|
|
|
<if test="modifyUser!=null">#{modifyUser},</if>
|
|
|
|
@ -291,10 +251,6 @@
|
|
|
|
|
#{site},
|
|
|
|
|
#{resrce},
|
|
|
|
|
#{status},
|
|
|
|
|
#{dateTime},
|
|
|
|
|
#{changeStatus},
|
|
|
|
|
#{changeDateTime},
|
|
|
|
|
#{intervalTime},
|
|
|
|
|
#{createUser},
|
|
|
|
|
#{createdDateTime},
|
|
|
|
|
#{modifyUser},
|
|
|
|
@ -308,10 +264,6 @@
|
|
|
|
|
<if test="et.site!=null">SITE=#{et.site},</if>
|
|
|
|
|
<if test="et.resrce!=null">RESRCE=#{et.resrce},</if>
|
|
|
|
|
<if test="et.status!=null">STATUS=#{et.status},</if>
|
|
|
|
|
<if test="et.dateTime!=null">DATE_TIME=#{et.dateTime},</if>
|
|
|
|
|
<if test="et.changeStatus!=null">CHANGE_STATUS=#{et.changeStatus},</if>
|
|
|
|
|
<if test="et.changeDateTime!=null">CHANGE_DATE_TIME=#{et.changeDateTime},</if>
|
|
|
|
|
<if test="et.intervalTime!=null">INTERVAL_TIME=#{et.intervalTime},</if>
|
|
|
|
|
<if test="et.createUser!=null">CREATE_USER=#{et.createUser},</if>
|
|
|
|
|
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
|
|
|
|
<if test="et.modifyUser!=null">MODIFY_USER=#{et.modifyUser},</if>
|
|
|
|
@ -325,10 +277,6 @@
|
|
|
|
|
SITE=#{et.site},
|
|
|
|
|
RESRCE=#{et.resrce},
|
|
|
|
|
STATUS=#{et.status},
|
|
|
|
|
DATE_TIME=#{et.dateTime},
|
|
|
|
|
CHANGE_STATUS=#{et.changeStatus},
|
|
|
|
|
CHANGE_DATE_TIME=#{et.changeDateTime},
|
|
|
|
|
INTERVAL_TIME=#{et.intervalTime},
|
|
|
|
|
CREATE_USER=#{et.createUser},
|
|
|
|
|
CREATED_DATE_TIME=#{et.createdDateTime},
|
|
|
|
|
MODIFY_USER=#{et.modifyUser},
|
|
|
|
@ -342,10 +290,6 @@
|
|
|
|
|
<if test="et.site!=null">SITE=#{et.site},</if>
|
|
|
|
|
<if test="et.resrce!=null">RESRCE=#{et.resrce},</if>
|
|
|
|
|
<if test="et.status!=null">STATUS=#{et.status},</if>
|
|
|
|
|
<if test="et.dateTime!=null">DATE_TIME=#{et.dateTime},</if>
|
|
|
|
|
<if test="et.changeStatus!=null">CHANGE_STATUS=#{et.changeStatus},</if>
|
|
|
|
|
<if test="et.changeDateTime!=null">CHANGE_DATE_TIME=#{et.changeDateTime},</if>
|
|
|
|
|
<if test="et.intervalTime!=null">INTERVAL_TIME=#{et.intervalTime},</if>
|
|
|
|
|
<if test="et.createUser!=null">CREATE_USER=#{et.createUser},</if>
|
|
|
|
|
<if test="et.createdDateTime!=null">CREATED_DATE_TIME=#{et.createdDateTime},</if>
|
|
|
|
|
<if test="et.modifyUser!=null">MODIFY_USER=#{et.modifyUser},</if>
|
|
|
|
@ -358,10 +302,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -405,10 +345,6 @@
|
|
|
|
|
<if test="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
|
|
|
|
|
<if test="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
|
|
|
|
|
<if test="ew.entity.status!=null"> AND STATUS=#{ew.entity.status}</if>
|
|
|
|
|
<if test="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
|
|
|
|
|
<if test="ew.entity.changeStatus!=null"> AND CHANGE_STATUS=#{ew.entity.changeStatus}</if>
|
|
|
|
|
<if test="ew.entity.changeDateTime!=null"> AND CHANGE_DATE_TIME=#{ew.entity.changeDateTime}</if>
|
|
|
|
|
<if test="ew.entity.intervalTime!=null"> AND INTERVAL_TIME=#{ew.entity.intervalTime}</if>
|
|
|
|
|
<if test="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
|
|
|
|
|
<if test="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
|
|
|
|
|
<if test="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
|
|
|
|
@ -434,15 +370,14 @@
|
|
|
|
|
<!--自定义sql-->
|
|
|
|
|
<select id="getOneByMaxCreateDateTime" resultType="com.foreverwin.mesnac.equip.model.ResourceStatusReceive">
|
|
|
|
|
SELECT * FROM (
|
|
|
|
|
SELECT ROWNUM SEQ, RSR.*
|
|
|
|
|
FROM Z_RESOURCE_STATUS_RECEIVE RSR
|
|
|
|
|
WHERE RSR.CHANGE_STATUS IS NULL AND RSR.SITE = #{site} AND RSR.RESRCE = #{resrce}
|
|
|
|
|
ORDER BY RSR.CREATED_DATE_TIME DESC
|
|
|
|
|
) WHERE SEQ = 1
|
|
|
|
|
SELECT ROWNUM SEQ, RSR.*
|
|
|
|
|
FROM Z_RESOURCE_STATUS_RECEIVE RSR
|
|
|
|
|
WHERE RSR.MODIFIED_DATE_TIME IS NULL AND RSR.SITE = #{site} AND RSR.RESRCE = #{resrce}
|
|
|
|
|
ORDER BY RSR.CREATED_DATE_TIME DESC
|
|
|
|
|
) WHERE SEQ = 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!--自定义sql-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|