|
@@ -10,20 +10,23 @@
|
|
|
<result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
|
|
<result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
|
|
|
<result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
|
|
<result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
|
|
|
<result column="CHECK_RESULT" jdbcType="VARCHAR" property="checkResult" />
|
|
<result column="CHECK_RESULT" jdbcType="VARCHAR" property="checkResult" />
|
|
|
|
|
+ <result column="TYPE_NO" jdbcType="VARCHAR" property="typeNo" />
|
|
|
|
|
+ <result column="TYPE_NAME" jdbcType="VARCHAR" property="typeName" />
|
|
|
|
|
+ <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
|
ID, CHECK_ID, CHECK_START_TIME, CHECK_END_TIME, CHECK_USED_SECONDS, CHECK_MAN_NO,
|
|
ID, CHECK_ID, CHECK_START_TIME, CHECK_END_TIME, CHECK_USED_SECONDS, CHECK_MAN_NO,
|
|
|
- CHECK_MAN_NAME, CHECK_RESULT
|
|
|
|
|
|
|
+ CHECK_MAN_NAME, CHECK_RESULT, TYPE_NO, TYPE_NAME, VALUE_FLAG
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
|
t.ID, t.CHECK_ID, t.CHECK_START_TIME, t.CHECK_END_TIME, t.CHECK_USED_SECONDS, t.CHECK_MAN_NO,
|
|
t.ID, t.CHECK_ID, t.CHECK_START_TIME, t.CHECK_END_TIME, t.CHECK_USED_SECONDS, t.CHECK_MAN_NO,
|
|
|
- t.CHECK_MAN_NAME, t.CHECK_RESULT
|
|
|
|
|
|
|
+ t.CHECK_MAN_NAME, t.CHECK_RESULT, t.TYPE_NO, t.TYPE_NAME, t.VALUE_FLAG
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select">
|
|
<sql id="select">
|
|
|
- SELECT <include refid="columns"/> FROM METER_WORK_CHECK_FIRST_ACTUAL
|
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM METER_WORK_CHECK_FIRST_ACTUAL
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
|
- SELECT <include refid="columns_alias"/> FROM METER_WORK_CHECK_FIRST_ACTUAL t
|
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM METER_WORK_CHECK_FIRST_ACTUAL t
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="where">
|
|
<sql id="where">
|
|
|
<where>
|
|
<where>
|
|
@@ -51,6 +54,15 @@
|
|
|
<if test="checkResult != null and checkResult != ''">
|
|
<if test="checkResult != null and checkResult != ''">
|
|
|
and CHECK_RESULT = #{checkResult}
|
|
and CHECK_RESULT = #{checkResult}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="typeNo != null and typeNo != ''">
|
|
|
|
|
+ and TYPE_NO = #{typeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and TYPE_NAME = #{typeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG = #{valueFlag}
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -79,6 +91,15 @@
|
|
|
<if test="checkResult != null and checkResult != ''">
|
|
<if test="checkResult != null and checkResult != ''">
|
|
|
and CHECK_RESULT LIKE '%${checkResult}%'
|
|
and CHECK_RESULT LIKE '%${checkResult}%'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="typeNo != null and typeNo != ''">
|
|
|
|
|
+ and TYPE_NO LIKE '%${typeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and TYPE_NAME LIKE '%${typeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</sql>
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
@@ -109,14 +130,25 @@
|
|
|
<if test="checkResult != null and checkResult != ''">
|
|
<if test="checkResult != null and checkResult != ''">
|
|
|
or CHECK_RESULT = #{checkResult}
|
|
or CHECK_RESULT = #{checkResult}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="typeNo != null and typeNo != ''">
|
|
|
|
|
+ or TYPE_NO = #{typeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ or TYPE_NAME = #{typeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ or VALUE_FLAG = #{valueFlag}
|
|
|
|
|
+ </if>
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
<insert id="insert" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
|
insert into METER_WORK_CHECK_FIRST_ACTUAL (ID, CHECK_ID, CHECK_START_TIME,
|
|
insert into METER_WORK_CHECK_FIRST_ACTUAL (ID, CHECK_ID, CHECK_START_TIME,
|
|
|
CHECK_END_TIME, CHECK_USED_SECONDS, CHECK_MAN_NO,
|
|
CHECK_END_TIME, CHECK_USED_SECONDS, CHECK_MAN_NO,
|
|
|
- CHECK_MAN_NAME, CHECK_RESULT)
|
|
|
|
|
|
|
+ CHECK_MAN_NAME, CHECK_RESULT, TYPE_NO,
|
|
|
|
|
+ TYPE_NAME, VALUE_FLAG)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{checkId,jdbcType=VARCHAR}, #{checkStartTime,jdbcType=TIMESTAMP},
|
|
values (#{id,jdbcType=VARCHAR}, #{checkId,jdbcType=VARCHAR}, #{checkStartTime,jdbcType=TIMESTAMP},
|
|
|
#{checkEndTime,jdbcType=TIMESTAMP}, #{checkUsedSeconds,jdbcType=DECIMAL}, #{checkManNo,jdbcType=VARCHAR},
|
|
#{checkEndTime,jdbcType=TIMESTAMP}, #{checkUsedSeconds,jdbcType=DECIMAL}, #{checkManNo,jdbcType=VARCHAR},
|
|
|
- #{checkManName,jdbcType=VARCHAR}, #{checkResult,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{checkManName,jdbcType=VARCHAR}, #{checkResult,jdbcType=VARCHAR}, #{typeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{typeName,jdbcType=VARCHAR}, #{valueFlag,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
|
insert into METER_WORK_CHECK_FIRST_ACTUAL
|
|
insert into METER_WORK_CHECK_FIRST_ACTUAL
|
|
@@ -145,6 +177,15 @@
|
|
|
<if test="checkResult != null">
|
|
<if test="checkResult != null">
|
|
|
CHECK_RESULT,
|
|
CHECK_RESULT,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="typeNo != null">
|
|
|
|
|
+ TYPE_NO,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null">
|
|
|
|
|
+ TYPE_NAME,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null">
|
|
|
|
|
+ VALUE_FLAG,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -171,6 +212,15 @@
|
|
|
<if test="checkResult != null">
|
|
<if test="checkResult != null">
|
|
|
#{checkResult,jdbcType=VARCHAR},
|
|
#{checkResult,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="typeNo != null">
|
|
|
|
|
+ #{typeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null">
|
|
|
|
|
+ #{typeName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null">
|
|
|
|
|
+ #{valueFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
@@ -181,7 +231,10 @@
|
|
|
CHECK_USED_SECONDS = #{checkUsedSeconds,jdbcType=DECIMAL},
|
|
CHECK_USED_SECONDS = #{checkUsedSeconds,jdbcType=DECIMAL},
|
|
|
CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
|
|
CHECK_MAN_NO = #{checkManNo,jdbcType=VARCHAR},
|
|
|
CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
|
|
CHECK_MAN_NAME = #{checkManName,jdbcType=VARCHAR},
|
|
|
- CHECK_RESULT = #{checkResult,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ CHECK_RESULT = #{checkResult,jdbcType=VARCHAR},
|
|
|
|
|
+ TYPE_NO = #{typeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ TYPE_NAME = #{typeName,jdbcType=VARCHAR},
|
|
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR}
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.MeterWorkCheckFirstActual">
|
|
@@ -208,83 +261,688 @@
|
|
|
<if test="checkResult != null">
|
|
<if test="checkResult != null">
|
|
|
CHECK_RESULT = #{checkResult,jdbcType=VARCHAR},
|
|
CHECK_RESULT = #{checkResult,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="typeNo != null">
|
|
|
|
|
+ TYPE_NO = #{typeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null">
|
|
|
|
|
+ TYPE_NAME = #{typeName,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null">
|
|
|
|
|
+ VALUE_FLAG = #{valueFlag,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
where ID = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
|
|
- <include refid="where"/>
|
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ <include refid="where" />
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
|
|
- <include refid="whereLike"/>
|
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ <include refid="whereLike" />
|
|
|
</select>
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into METER_WORK_CHECK_FIRST_ACTUAL
|
|
insert into METER_WORK_CHECK_FIRST_ACTUAL
|
|
|
(ID,
|
|
(ID,
|
|
|
CHECK_ID, CHECK_START_TIME, CHECK_END_TIME,
|
|
CHECK_ID, CHECK_START_TIME, CHECK_END_TIME,
|
|
|
CHECK_USED_SECONDS, CHECK_MAN_NO,
|
|
CHECK_USED_SECONDS, CHECK_MAN_NO,
|
|
|
- CHECK_MAN_NAME, CHECK_RESULT)
|
|
|
|
|
|
|
+ CHECK_MAN_NAME, CHECK_RESULT, TYPE_NO,
|
|
|
|
|
+ TYPE_NAME, VALUE_FLAG)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
select
|
|
|
#{item.id,jdbcType=VARCHAR},
|
|
#{item.id,jdbcType=VARCHAR},
|
|
|
#{item.checkId,jdbcType=VARCHAR}, #{item.checkStartTime,jdbcType=TIMESTAMP}, #{item.checkEndTime,jdbcType=TIMESTAMP},
|
|
#{item.checkId,jdbcType=VARCHAR}, #{item.checkStartTime,jdbcType=TIMESTAMP}, #{item.checkEndTime,jdbcType=TIMESTAMP},
|
|
|
#{item.checkUsedSeconds,jdbcType=DECIMAL}, #{item.checkManNo,jdbcType=VARCHAR},
|
|
#{item.checkUsedSeconds,jdbcType=DECIMAL}, #{item.checkManNo,jdbcType=VARCHAR},
|
|
|
- #{item.checkManName,jdbcType=VARCHAR}, #{item.checkResult,jdbcType=VARCHAR} from dual
|
|
|
|
|
|
|
+ #{item.checkManName,jdbcType=VARCHAR}, #{item.checkResult,jdbcType=VARCHAR}, #{item.typeNo,jdbcType=VARCHAR},
|
|
|
|
|
+ #{item.typeName,jdbcType=VARCHAR}, #{item.valueFlag,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
</foreach> )
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
update METER_WORK_CHECK_FIRST_ACTUAL
|
|
update METER_WORK_CHECK_FIRST_ACTUAL
|
|
|
set
|
|
set
|
|
|
ID=
|
|
ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.id,jdbcType=VARCHAR}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.id,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_ID=
|
|
,CHECK_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkId,jdbcType=VARCHAR}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkId,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_START_TIME=
|
|
,CHECK_START_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkStartTime,jdbcType=TIMESTAMP}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkStartTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_END_TIME=
|
|
,CHECK_END_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkEndTime,jdbcType=TIMESTAMP}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkEndTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_USED_SECONDS=
|
|
,CHECK_USED_SECONDS=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkUsedSeconds,jdbcType=DECIMAL}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkUsedSeconds,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_MAN_NO=
|
|
,CHECK_MAN_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkManNo,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_MAN_NAME=
|
|
,CHECK_MAN_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkManName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
,CHECK_RESULT=
|
|
,CHECK_RESULT=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case ID" close="end">
|
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkResult,jdbcType=VARCHAR}
|
|
when #{item.id,jdbcType=VARCHAR} then #{item.checkResult,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ ,TYPE_NO=
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.typeNo,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,TYPE_NAME=
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.typeName,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ,VALUE_FLAG=
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case ID" separator=" ">
|
|
|
|
|
+ when #{item.id,jdbcType=VARCHAR} then #{item.valueFlag,jdbcType=VARCHAR}
|
|
|
|
|
+ </foreach>
|
|
|
where ID in
|
|
where ID in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
#{item.id,jdbcType=VARCHAR}
|
|
#{item.id,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</update>
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from METER_WORK_CHECK_FIRST_ACTUAL
|
|
delete from METER_WORK_CHECK_FIRST_ACTUAL
|
|
|
where ID in
|
|
where ID in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
#{id}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</delete>
|
|
</delete>
|
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 查询汽车衡一次和净重数据所有的站点信息 -->
|
|
|
|
|
+ <select id="spotInfoList" parameterType="java.util.HashMap" resultType="com.steerinfo.baseinfo.meterbasespotinfo.model.MeterBaseSpotInfo">
|
|
|
|
|
+ select baseSpotNo,
|
|
|
|
|
+ baseSpotName
|
|
|
|
|
+ from (
|
|
|
|
|
+ (
|
|
|
|
|
+ select A.base_spot_no baseSpotNo,
|
|
|
|
|
+ A.base_spot_name baseSpotName
|
|
|
|
|
+ from meter_work_car_actual_first A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_first_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.create_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.create_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ group by A.base_spot_no,
|
|
|
|
|
+ A.base_spot_name)
|
|
|
|
|
+ union
|
|
|
|
|
+ (select A.net_spot3_no baseSpotNo,
|
|
|
|
|
+ A.net_spot3_name baseSpotName
|
|
|
|
|
+ from meter_work_car_actual A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ group by A.net_spot3_no,
|
|
|
|
|
+ A.net_spot3_name)
|
|
|
|
|
+ )
|
|
|
|
|
+ group by baseSpotNo,
|
|
|
|
|
+ baseSpotName
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <resultMap id="CarFirstBaseResultMap" type="com.steerinfo.meterwork.meterworkcaractualfirst.model.MeterWorkCarActualFirst">
|
|
|
|
|
+ <id column="ACTUAL_FIRST_NO" jdbcType="VARCHAR" property="actualFirstNo" />
|
|
|
|
|
+ <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
|
|
|
|
|
+ <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
|
|
|
|
|
+ <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
|
|
|
|
|
+ <result column="TRAILER_NO" jdbcType="VARCHAR" property="trailerNo" />
|
|
|
|
|
+ <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
|
|
|
|
|
+ <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
|
|
|
|
|
+ <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
|
|
|
|
|
+ <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
|
|
|
|
|
+ <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
|
|
|
|
|
+ <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
|
|
|
|
|
+ <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
|
|
|
|
|
+ <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
|
|
|
|
|
+ <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
|
|
|
|
|
+ <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
|
|
|
|
|
+ <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
|
|
|
|
|
+ <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
|
|
|
|
|
+ <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
|
|
|
|
|
+ <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
|
|
|
|
|
+ <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
|
|
|
|
|
+ <result column="BIND_CARD_NO" jdbcType="VARCHAR" property="bindCardNo" />
|
|
|
|
|
+ <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
|
|
|
|
|
+ <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
|
|
|
|
|
+ <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
|
|
|
|
|
+ <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
|
|
|
|
|
+ <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
|
|
|
|
|
+ <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
|
|
|
|
|
+ <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
|
|
|
|
|
+ <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
|
|
|
|
|
+ <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
|
|
|
|
|
+ <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
|
|
|
|
|
+ <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
|
|
|
|
|
+ <result column="METER_PROCESS_NO" jdbcType="VARCHAR" property="meterProcessNo" />
|
|
|
|
|
+ <result column="METER_PROCESS_EDITION_NO" jdbcType="VARCHAR" property="meterProcessEditionNo" />
|
|
|
|
|
+ <result column="METER_WEIGHT" jdbcType="DECIMAL" property="meterWeight" />
|
|
|
|
|
+ <result column="ADD_WEIGHT" jdbcType="DECIMAL" property="addWeight" />
|
|
|
|
|
+ <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
|
|
|
|
|
+ <result column="WEIGHT_TYPE" jdbcType="VARCHAR" property="weightType" />
|
|
|
|
|
+ <result column="CREATE_MAN_NO" jdbcType="VARCHAR" property="createManNo" />
|
|
|
|
|
+ <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
|
|
|
+ <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="BASE_SPOT_NO" jdbcType="VARCHAR" property="baseSpotNo" />
|
|
|
|
|
+ <result column="BASE_SPOT_NAME" jdbcType="VARCHAR" property="baseSpotName" />
|
|
|
|
|
+ <result column="METER_CLASS" jdbcType="VARCHAR" property="meterClass" />
|
|
|
|
|
+ <result column="METER_GROUP" jdbcType="VARCHAR" property="meterGroup" />
|
|
|
|
|
+ <result column="MEMO" jdbcType="VARCHAR" property="memo" />
|
|
|
|
|
+ <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
+ <result column="CHECK_FLAG" jdbcType="VARCHAR" property="checkFlag" />
|
|
|
|
|
+ <result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
|
|
|
|
|
+ <result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
|
|
|
|
|
+ <result column="CHECK_TIME" jdbcType="TIMESTAMP" property="checkTime" />
|
|
|
|
|
+ <result column="METER_MODE" jdbcType="VARCHAR" property="meterMode" />
|
|
|
|
|
+ <result column="METER_REASON_NO" jdbcType="VARCHAR" property="meterReasonNo" />
|
|
|
|
|
+ <result column="METER_REASON_NAME" jdbcType="VARCHAR" property="meterReasonName" />
|
|
|
|
|
+ <result column="LOAD_END_TIME" jdbcType="TIMESTAMP" property="loadEndTime" />
|
|
|
|
|
+ <result column="ADD_WGT_NO" jdbcType="VARCHAR" property="addWgtNo" />
|
|
|
|
|
+ <result column="ADD_WGT_PK" jdbcType="VARCHAR" property="addWgtPk" />
|
|
|
|
|
+ <result column="LIMS_SAMPLING_FLAG" jdbcType="VARCHAR" property="limsSamplingFlag" />
|
|
|
|
|
+ <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
|
|
|
|
|
+ <result column="METER_PIER_NAME" jdbcType="VARCHAR" property="meterPierName" />
|
|
|
|
|
+ <result column="METER_PIER_NO" jdbcType="VARCHAR" property="meterPierNo" />
|
|
|
|
|
+ <result column="SHIP_NO" jdbcType="VARCHAR" property="shipNo" />
|
|
|
|
|
+ <result column="NOTE" jdbcType="VARCHAR" property="note" />
|
|
|
|
|
+ <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
|
|
|
|
|
+ <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
|
|
|
|
|
+ <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
|
|
|
|
|
+ <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
|
|
|
|
|
+ <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
|
|
|
|
|
+ <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
|
|
|
|
|
+ <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
|
|
|
|
|
+ <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
|
|
|
|
|
+ <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
|
|
|
|
|
+ <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
|
|
|
|
|
+ <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
|
|
|
|
|
+ <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
|
|
|
|
|
+ <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
|
|
|
|
|
+ <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
|
|
|
|
|
+ <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
|
|
|
|
|
+ <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
|
|
|
|
|
+ <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
|
|
|
|
|
+ <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
|
|
|
|
|
+ <result column="MEASURE_OBJECT_TYPE" jdbcType="VARCHAR" property="measureObjectType" />
|
|
|
|
|
+ <result column="MEASURE_TASK_NUM" jdbcType="VARCHAR" property="measureTaskNum" />
|
|
|
|
|
+ <result column="DATA_SOURCE" jdbcType="VARCHAR" property="dataSource" />
|
|
|
|
|
+ <result column="IS_PRE_SCALE" jdbcType="VARCHAR" property="isPreScale" />
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carFirstDataList" parameterType="java.util.HashMap" resultMap="CarFirstBaseResultMap">
|
|
|
|
|
+ select *
|
|
|
|
|
+ from meter_work_car_actual_first
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and create_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and create_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carFirstImgDataList" parameterType="java.util.HashMap" resultType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.FirstActualImgData">
|
|
|
|
|
+ select A.base_spot_no baseSpotNo,
|
|
|
|
|
+ A.base_spot_name baseSpotName,
|
|
|
|
|
+ B.*
|
|
|
|
|
+ from meter_work_car_actual_first A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_first_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and A.actual_first_no in (
|
|
|
|
|
+ select distinct C.check_id
|
|
|
|
|
+ from meter_work_check_first_actual C
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and C.value_flag = '0'
|
|
|
|
|
+ <if test="typeNo != null and typeName != ''">
|
|
|
|
|
+ and C.type_No = #{typeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and C.type_Name = #{typeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ )
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.create_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.create_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <resultMap id="CarActualBaseResultMap" type="com.steerinfo.meterwork.meterworkcaractual.model.MeterWorkCarActual">
|
|
|
|
|
+ <id column="ACTUAL_NO" jdbcType="VARCHAR" property="actualNo" />
|
|
|
|
|
+ <result column="PREDICTION_NO" jdbcType="VARCHAR" property="predictionNo" />
|
|
|
|
|
+ <result column="NOTICE_NO" jdbcType="VARCHAR" property="noticeNo" />
|
|
|
|
|
+ <result column="CAR_NO" jdbcType="VARCHAR" property="carNo" />
|
|
|
|
|
+ <result column="TRAILER_NO" jdbcType="VARCHAR" property="trailerNo" />
|
|
|
|
|
+ <result column="MATTER_NO" jdbcType="VARCHAR" property="matterNo" />
|
|
|
|
|
+ <result column="MATTER_NAME" jdbcType="VARCHAR" property="matterName" />
|
|
|
|
|
+ <result column="CONTRACT_NO" jdbcType="VARCHAR" property="contractNo" />
|
|
|
|
|
+ <result column="BATCH_NO" jdbcType="VARCHAR" property="batchNo" />
|
|
|
|
|
+ <result column="CUSTOMER_SUPPLIER_NO" jdbcType="VARCHAR" property="customerSupplierNo" />
|
|
|
|
|
+ <result column="CUSTOMER_SUPPLIER_NAME" jdbcType="VARCHAR" property="customerSupplierName" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NO" jdbcType="VARCHAR" property="forwardingUnitNo" />
|
|
|
|
|
+ <result column="FORWARDING_UNIT_NAME" jdbcType="VARCHAR" property="forwardingUnitName" />
|
|
|
|
|
+ <result column="RECEIVING_UINT_NO" jdbcType="VARCHAR" property="receivingUintNo" />
|
|
|
|
|
+ <result column="RECEIVING_UINT_NAME" jdbcType="VARCHAR" property="receivingUintName" />
|
|
|
|
|
+ <result column="MATERIAL_NO" jdbcType="VARCHAR" property="materialNo" />
|
|
|
|
|
+ <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
|
|
|
|
|
+ <result column="SPEC_NO" jdbcType="VARCHAR" property="specNo" />
|
|
|
|
|
+ <result column="SPEC_NAME" jdbcType="VARCHAR" property="specName" />
|
|
|
|
|
+ <result column="LOAD_POINT_NO" jdbcType="VARCHAR" property="loadPointNo" />
|
|
|
|
|
+ <result column="LOAD_POINT_NAME" jdbcType="VARCHAR" property="loadPointName" />
|
|
|
|
|
+ <result column="SAMPLE_NO" jdbcType="VARCHAR" property="sampleNo" />
|
|
|
|
|
+ <result column="SAMPLE_VOUCHER" jdbcType="VARCHAR" property="sampleVoucher" />
|
|
|
|
|
+ <result column="CARRIER_UNIT_NO" jdbcType="VARCHAR" property="carrierUnitNo" />
|
|
|
|
|
+ <result column="CARRIER_UNIT_NAME" jdbcType="VARCHAR" property="carrierUnitName" />
|
|
|
|
|
+ <result column="METER_TYPE_NO" jdbcType="VARCHAR" property="meterTypeNo" />
|
|
|
|
|
+ <result column="METER_TYPE_NAME" jdbcType="VARCHAR" property="meterTypeName" />
|
|
|
|
|
+ <result column="METER_PROCESS_NO" jdbcType="VARCHAR" property="meterProcessNo" />
|
|
|
|
|
+ <result column="METER_PROCESS_EDITION_NO" jdbcType="VARCHAR" property="meterProcessEditionNo" />
|
|
|
|
|
+ <result column="ACTUAL_FIRST1_NO" jdbcType="VARCHAR" property="actualFirst1No" />
|
|
|
|
|
+ <result column="GROSS_WEIGHT" jdbcType="DECIMAL" property="grossWeight" />
|
|
|
|
|
+ <result column="GROSS_MAN_NO" jdbcType="VARCHAR" property="grossManNo" />
|
|
|
|
|
+ <result column="GROSS_MAN_NAME" jdbcType="VARCHAR" property="grossManName" />
|
|
|
|
|
+ <result column="GROSS_TIME" jdbcType="TIMESTAMP" property="grossTime" />
|
|
|
|
|
+ <result column="BASE_SPOT1_NO" jdbcType="VARCHAR" property="baseSpot1No" />
|
|
|
|
|
+ <result column="BASE_SPOT1_NAME" jdbcType="VARCHAR" property="baseSpot1Name" />
|
|
|
|
|
+ <result column="GROSS_CLASS" jdbcType="VARCHAR" property="grossClass" />
|
|
|
|
|
+ <result column="GROSS_GROUP" jdbcType="VARCHAR" property="grossGroup" />
|
|
|
|
|
+ <result column="GROSS_MODE" jdbcType="VARCHAR" property="grossMode" />
|
|
|
|
|
+ <result column="ACTUAL_FIRST2_NO" jdbcType="VARCHAR" property="actualFirst2No" />
|
|
|
|
|
+ <result column="TARE_WEIGHT" jdbcType="DECIMAL" property="tareWeight" />
|
|
|
|
|
+ <result column="TARE_MAN_NO" jdbcType="VARCHAR" property="tareManNo" />
|
|
|
|
|
+ <result column="TARE_MAN_NAME" jdbcType="VARCHAR" property="tareManName" />
|
|
|
|
|
+ <result column="TARE_TIME" jdbcType="TIMESTAMP" property="tareTime" />
|
|
|
|
|
+ <result column="BASE_SPOT2_NO" jdbcType="VARCHAR" property="baseSpot2No" />
|
|
|
|
|
+ <result column="BASE_SPOT2_NAME" jdbcType="VARCHAR" property="baseSpot2Name" />
|
|
|
|
|
+ <result column="TARE_CLASS" jdbcType="VARCHAR" property="tareClass" />
|
|
|
|
|
+ <result column="TARE_GROUP" jdbcType="VARCHAR" property="tareGroup" />
|
|
|
|
|
+ <result column="TARE_MODE" jdbcType="VARCHAR" property="tareMode" />
|
|
|
|
|
+ <result column="NET_WEIGHT" jdbcType="DECIMAL" property="netWeight" />
|
|
|
|
|
+ <result column="METER_NUM" jdbcType="DECIMAL" property="meterNum" />
|
|
|
|
|
+ <result column="NET_MAN_NO" jdbcType="VARCHAR" property="netManNo" />
|
|
|
|
|
+ <result column="NET_MAN_NAME" jdbcType="VARCHAR" property="netManName" />
|
|
|
|
|
+ <result column="NET_TIME" jdbcType="TIMESTAMP" property="netTime" />
|
|
|
|
|
+ <result column="NET_SPOT3_NO" jdbcType="VARCHAR" property="netSpot3No" />
|
|
|
|
|
+ <result column="NET_SPOT3_NAME" jdbcType="VARCHAR" property="netSpot3Name" />
|
|
|
|
|
+ <result column="NET_GROUP" jdbcType="VARCHAR" property="netGroup" />
|
|
|
|
|
+ <result column="NET_MODE" jdbcType="VARCHAR" property="netMode" />
|
|
|
|
|
+ <result column="VALUE_FLAG" jdbcType="VARCHAR" property="valueFlag" />
|
|
|
|
|
+ <result column="UPLOAD_FLAG" jdbcType="VARCHAR" property="uploadFlag" />
|
|
|
|
|
+ <result column="CHECK_MAN_NO" jdbcType="VARCHAR" property="checkManNo" />
|
|
|
|
|
+ <result column="CHECK_MAN_NAME" jdbcType="VARCHAR" property="checkManName" />
|
|
|
|
|
+ <result column="CHECK_TIME" jdbcType="TIMESTAMP" property="checkTime" />
|
|
|
|
|
+ <result column="UPLOAD_MAN_NO" jdbcType="VARCHAR" property="uploadManNo" />
|
|
|
|
|
+ <result column="UPLOAD_MAN_NAME" jdbcType="VARCHAR" property="uploadManName" />
|
|
|
|
|
+ <result column="UPLOAD_TIME" jdbcType="TIMESTAMP" property="uploadTime" />
|
|
|
|
|
+ <result column="ADD_WEIGHT" jdbcType="DECIMAL" property="addWeight" />
|
|
|
|
|
+ <result column="NET_CLASS" jdbcType="VARCHAR" property="netClass" />
|
|
|
|
|
+ <result column="TB_FLAGE" jdbcType="VARCHAR" property="tbFlage" />
|
|
|
|
|
+ <result column="RAILWAY_NO" jdbcType="VARCHAR" property="railwayNo" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NO" jdbcType="VARCHAR" property="updateManNo" />
|
|
|
|
|
+ <result column="UPDATE_MAN_NAME" jdbcType="VARCHAR" property="updateManName" />
|
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
+ <result column="MEMO" jdbcType="VARCHAR" property="memo" />
|
|
|
|
|
+ <result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
|
|
|
|
|
+ <result column="SHIPMENT_GROSS_WEIGHT" jdbcType="DECIMAL" property="shipmentGrossWeight" />
|
|
|
|
|
+ <result column="SHIPMENT_NET_WEIGHT" jdbcType="DECIMAL" property="shipmentNetWeight" />
|
|
|
|
|
+ <result column="SHIPMENT_NUM" jdbcType="DECIMAL" property="shipmentNum" />
|
|
|
|
|
+ <result column="BIND_CARD_NO" jdbcType="VARCHAR" property="bindCardNo" />
|
|
|
|
|
+ <result column="PREDICTION_TYPE" jdbcType="VARCHAR" property="predictionType" />
|
|
|
|
|
+ <result column="PREDICTION_COMBINATION" jdbcType="VARCHAR" property="predictionCombination" />
|
|
|
|
|
+ <result column="METER_PIER_NAME" jdbcType="VARCHAR" property="meterPierName" />
|
|
|
|
|
+ <result column="METER_PIER_NO" jdbcType="VARCHAR" property="meterPierNo" />
|
|
|
|
|
+ <result column="SHIP_NO" jdbcType="VARCHAR" property="shipNo" />
|
|
|
|
|
+ <result column="NOTE" jdbcType="VARCHAR" property="note" />
|
|
|
|
|
+ <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
|
|
|
|
|
+ <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
|
|
|
|
|
+ <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
|
|
|
|
|
+ <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
|
|
|
|
|
+ <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
|
|
|
|
|
+ <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
|
|
|
|
|
+ <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
|
|
|
|
|
+ <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
|
|
|
|
|
+ <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
|
|
|
|
|
+ <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
|
|
|
|
|
+ <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
|
|
|
|
|
+ <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
|
|
|
|
|
+ <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
|
|
|
|
|
+ <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
|
|
|
|
|
+ <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
|
|
|
|
|
+ <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
|
|
|
|
|
+ <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
|
|
|
|
|
+ <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
|
|
|
|
|
+ <result column="MEASURE_OBJECT_TYPE" jdbcType="VARCHAR" property="measureObjectType" />
|
|
|
|
|
+ <result column="MEASURE_TASK_NUM" jdbcType="VARCHAR" property="measureTaskNum" />
|
|
|
|
|
+ <result column="BILL_TYPE" jdbcType="VARCHAR" property="billType" />
|
|
|
|
|
+ <result column="CREATE_MAN_NAME" jdbcType="VARCHAR" property="createManName" />
|
|
|
|
|
+ <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="DATA_SOURCE" jdbcType="VARCHAR" property="dataSource" />
|
|
|
|
|
+ <result column="IS_PRE_SCALE" jdbcType="VARCHAR" property="isPreScale" />
|
|
|
|
|
+ <result column="BOUND_LIST_URL" jdbcType="VARCHAR" property="boundListUrl" />
|
|
|
|
|
+ <result column="IS_BOUND_LIST" jdbcType="VARCHAR" property="isBoundList" />
|
|
|
|
|
+ <result column="CONTRACT_ID" jdbcType="VARCHAR" property="contractId" />
|
|
|
|
|
+ <result column="IS_BOUND_LIST_DOWNLOADED" jdbcType="VARCHAR" property="isBoundListDownloaded" />
|
|
|
|
|
+ <result column="DOCUMENT_ID" jdbcType="VARCHAR" property="documentId" />
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carActualDataList" parameterType="java.util.HashMap" resultMap="CarActualBaseResultMap">
|
|
|
|
|
+ select *
|
|
|
|
|
+ from meter_work_car_actual
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carActualImgDataList" parameterType="java.util.HashMap" resultType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.FirstActualImgData">
|
|
|
|
|
+ select A.net_spot3_no baseSpotNo,
|
|
|
|
|
+ A.net_spot3_name baseSpotName,
|
|
|
|
|
+ B.*
|
|
|
|
|
+ from meter_work_car_actual A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and A.actual_no in (
|
|
|
|
|
+ select distinct C.check_id
|
|
|
|
|
+ from meter_work_check_first_actual C
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and C.value_flag = '1'
|
|
|
|
|
+ <if test="typeNo != null and typeName != ''">
|
|
|
|
|
+ and C.type_No = #{typeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and C.type_Name = #{typeName}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ )
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carActualCountCheckNum" parameterType="java.util.HashMap" resultType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.CarActualCountCheckNum">
|
|
|
|
|
+ select count(1) countCheckNum,
|
|
|
|
|
+ sum(CHECK_USED_SECONDS) countSumCheckUsed,
|
|
|
|
|
+ avg(B.CHECK_USED_SECONDS) countAvgCheckUsed,
|
|
|
|
|
+ A.actual_no actualNo,
|
|
|
|
|
+ A.actual_first1_no actualFirst1No,
|
|
|
|
|
+ A.actual_first2_no actualFirst2No,
|
|
|
|
|
+ case when A.net_mode = '1' then '远程计量'
|
|
|
|
|
+ when A.net_mode = '2' then '智能计量'
|
|
|
|
|
+ when A.net_mode = '3' then '手工计量'
|
|
|
|
|
+ else A.net_mode end netMode,
|
|
|
|
|
+ A.prediction_no predictionNo,
|
|
|
|
|
+ A.car_No carNo,
|
|
|
|
|
+ A.conveyance_type conveyanceType,
|
|
|
|
|
+ A.matter_no matterNo,
|
|
|
|
|
+ A.matter_name matterName,
|
|
|
|
|
+ to_char(round(A.gross_Weight/1000, 2),'FM9999999999999999.00') grossWeight,
|
|
|
|
|
+ to_char(round(A.tare_weight/1000, 2),'FM9999999999999999.00') tareWeight,
|
|
|
|
|
+ to_char(round(A.net_weight/1000, 2),'FM9999999999999999.00') netWeight,
|
|
|
|
|
+ A.forwarding_unit_name forwardingUnitName,
|
|
|
|
|
+ A.receiving_uint_name receivingUintName,
|
|
|
|
|
+ case when A.meter_type_Name = 'SendToOutTms' then '外发'
|
|
|
|
|
+ when A.meter_type_Name = 'GM2GM' or A.meter_type_name = 'InnerTms' then '厂内转储'
|
|
|
|
|
+ when A.meter_type_Name = 'PO2GM' then '外进'
|
|
|
|
|
+ else A.meter_type_Name end meterTypeName,
|
|
|
|
|
+ A.theory_amount theoryAmount,
|
|
|
|
|
+ A.gross_time grossTime,
|
|
|
|
|
+ A.base_spot1_name baseSpot1Name,
|
|
|
|
|
+ A.gross_man_name grossManName,
|
|
|
|
|
+ A.tare_time tareTime,
|
|
|
|
|
+ A.base_spot2_name baseSpot2Name,
|
|
|
|
|
+ A.tare_man_name tareManName,
|
|
|
|
|
+ case when A.value_flag = '0' then '作废'
|
|
|
|
|
+ when A.value_flag = '1' then '有效-未上传'
|
|
|
|
|
+ when A.value_flag = '2' then '有效-已上传'
|
|
|
|
|
+ else A.value_flag end valueFlag,
|
|
|
|
|
+ case when A.upload_flag = '1' then '待上传'
|
|
|
|
|
+ when A.upload_flag = '2' then '已上传'
|
|
|
|
|
+ else A.upload_flag end uploadFlag
|
|
|
|
|
+ from meter_work_car_actual A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and A.actual_no in (
|
|
|
|
|
+ select distinct C.check_id
|
|
|
|
|
+ from meter_work_check_first_actual C
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and C.value_flag = '1'
|
|
|
|
|
+ <if test="typeNo != null and typeName != ''">
|
|
|
|
|
+ and C.type_No = #{typeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and C.type_Name = #{typeName}
|
|
|
|
|
+ </if>)
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ group by A.actual_no,
|
|
|
|
|
+ A.actual_first1_no,
|
|
|
|
|
+ A.actual_first2_no,
|
|
|
|
|
+ A.net_mode,
|
|
|
|
|
+ A.prediction_no,
|
|
|
|
|
+ A.car_no,
|
|
|
|
|
+ A.conveyance_type,
|
|
|
|
|
+ A.matter_no,
|
|
|
|
|
+ A.matter_name,
|
|
|
|
|
+ A.gross_weight,
|
|
|
|
|
+ A.tare_weight,
|
|
|
|
|
+ A.net_weight,
|
|
|
|
|
+ A.forwarding_unit_name,
|
|
|
|
|
+ A.receiving_uint_name,
|
|
|
|
|
+ A.meter_type_Name,
|
|
|
|
|
+ A.theory_amount,
|
|
|
|
|
+ A.gross_time,
|
|
|
|
|
+ A.base_spot1_name,
|
|
|
|
|
+ A.gross_man_name,
|
|
|
|
|
+ A.tare_time,
|
|
|
|
|
+ A.base_spot2_name,
|
|
|
|
|
+ A.tare_man_name,
|
|
|
|
|
+ A.value_flag,
|
|
|
|
|
+ A.upload_flag
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carFirstCountCheckNum" parameterType="java.util.HashMap" resultType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.CarFirstCountCheckNum">
|
|
|
|
|
+ select count(1) countCheckNum,
|
|
|
|
|
+ sum(CHECK_USED_SECONDS) countSumCheckUsed,
|
|
|
|
|
+ avg(B.CHECK_USED_SECONDS) countAvgCheckUsed,
|
|
|
|
|
+ A.actual_first_no actualFirstNo,
|
|
|
|
|
+ case when A.meter_mode = '1' then '远程计量'
|
|
|
|
|
+ when A.meter_mode = '2' then '智能计量'
|
|
|
|
|
+ when A.meter_mode = '3' then '手工计量'
|
|
|
|
|
+ else A.meter_mode end meterMode,
|
|
|
|
|
+ A.prediction_no predictionNo,
|
|
|
|
|
+ A.car_No carNo,
|
|
|
|
|
+ A.conveyance_type conveyanceType,
|
|
|
|
|
+ A.matter_no matterNo,
|
|
|
|
|
+ A.matter_name matterName,
|
|
|
|
|
+ to_char(round(A.meter_Weight/1000, 2),'FM9999999999999999.00') meterWeight,
|
|
|
|
|
+ A.forwarding_unit_name forwardingUnitName,
|
|
|
|
|
+ A.receiving_uint_name receivingUintName,
|
|
|
|
|
+ case when A.meter_type_Name = 'SendToOutTms' then '外发'
|
|
|
|
|
+ when A.meter_type_Name = 'GM2GM' or A.meter_type_name = 'InnerTms' then '厂内转储'
|
|
|
|
|
+ when A.meter_type_Name = 'PO2GM' then '外进'
|
|
|
|
|
+ else A.meter_type_Name end meterTypeName,
|
|
|
|
|
+ A.theory_amount theoryAmount,
|
|
|
|
|
+ A.create_time createTime,
|
|
|
|
|
+ A.base_spot_name baseSpotName,
|
|
|
|
|
+ case when A.value_flag = '0' then '作废'
|
|
|
|
|
+ when A.value_flag = '1' then '有效'
|
|
|
|
|
+ when A.value_flag = '2' then '结净'
|
|
|
|
|
+ else A.value_flag end valueFlag
|
|
|
|
|
+ from meter_work_car_actual_first A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_first_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and A.actual_first_no in (
|
|
|
|
|
+ select distinct C.check_id
|
|
|
|
|
+ from meter_work_check_first_actual C
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and C.value_flag = '0'
|
|
|
|
|
+ <if test="typeNo != null and typeName != ''">
|
|
|
|
|
+ and C.type_No = #{typeNo}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and C.type_Name = #{typeName}
|
|
|
|
|
+ </if>)
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.create_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.create_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ group by A.actual_first_no,
|
|
|
|
|
+ A.meter_mode,
|
|
|
|
|
+ A.prediction_no,
|
|
|
|
|
+ A.car_no,
|
|
|
|
|
+ A.conveyance_type,
|
|
|
|
|
+ A.matter_no,
|
|
|
|
|
+ A.matter_name,
|
|
|
|
|
+ A.meter_weight,
|
|
|
|
|
+ A.forwarding_unit_name,
|
|
|
|
|
+ A.receiving_uint_name,
|
|
|
|
|
+ A.meter_type_Name,
|
|
|
|
|
+ A.theory_amount,
|
|
|
|
|
+ A.create_time,
|
|
|
|
|
+ A.base_spot_name,
|
|
|
|
|
+ A.create_man_name,
|
|
|
|
|
+ A.value_flag
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="likeByDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="checkId != null and checkId != ''">
|
|
|
|
|
+ and CHECK_ID LIKE '%${checkId}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeNo != null and typeNo != ''">
|
|
|
|
|
+ and TYPE_NO LIKE '%${typeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="typeName != null and typeName != ''">
|
|
|
|
|
+ and TYPE_NAME LIKE '%${typeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ order by check_start_time desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carFirstLikeByDesc" parameterType="java.util.HashMap"
|
|
|
|
|
+ resultType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.CarFirstCountCheckNum">
|
|
|
|
|
+ select A.actual_first_no actualFirstNo,
|
|
|
|
|
+ case when A.meter_mode = '1' then '远程计量'
|
|
|
|
|
+ when A.meter_mode = '2' then '智能计量'
|
|
|
|
|
+ when A.meter_mode = '3' then '手工计量'
|
|
|
|
|
+ else A.meter_mode end meterMode,
|
|
|
|
|
+ A.prediction_no predictionNo,
|
|
|
|
|
+ A.car_No carNo,
|
|
|
|
|
+ A.conveyance_type conveyanceType,
|
|
|
|
|
+ A.matter_no matterNo,
|
|
|
|
|
+ A.matter_name matterName,
|
|
|
|
|
+ to_char(round(A.meter_Weight/1000, 2),'FM9999999999999999.00') meterWeight,
|
|
|
|
|
+ A.forwarding_unit_name forwardingUnitName,
|
|
|
|
|
+ A.receiving_uint_name receivingUintName,
|
|
|
|
|
+ case when A.meter_type_Name = 'SendToOutTms' then '外发'
|
|
|
|
|
+ when A.meter_type_Name = 'GM2GM' or A.meter_type_name = 'InnerTms' then '厂内转储'
|
|
|
|
|
+ when A.meter_type_Name = 'PO2GM' then '外进'
|
|
|
|
|
+ else A.meter_type_Name end meterTypeName,
|
|
|
|
|
+ A.theory_amount theoryAmount,
|
|
|
|
|
+ A.create_time createTime,
|
|
|
|
|
+ A.base_spot_name baseSpotName,
|
|
|
|
|
+ case when A.value_flag = '0' then '作废'
|
|
|
|
|
+ when A.value_flag = '1' then '有效'
|
|
|
|
|
+ when A.value_flag = '2' then '结净'
|
|
|
|
|
+ else A.value_flag end valueFlag
|
|
|
|
|
+ from meter_work_car_actual_first A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_first_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and A.actual_first_no not in (select distinct C.check_id
|
|
|
|
|
+ from meter_work_check_first_actual C
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and C.value_flag = '0'
|
|
|
|
|
+ and C.type_no = '001002001')
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.create_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.create_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by A.create_time desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="carActualLikeByDesc" parameterType="java.util.HashMap"
|
|
|
|
|
+ resultType="com.steerinfo.meterwork.meterworkcheckfirstactual.model.CarActualCountCheckNum">
|
|
|
|
|
+ select A.actual_no actualNo,
|
|
|
|
|
+ A.actual_first1_no actualFirst1No,
|
|
|
|
|
+ A.actual_first2_no actualFirst2No,
|
|
|
|
|
+ case when A.net_mode = '1' then '远程计量'
|
|
|
|
|
+ when A.net_mode = '2' then '智能计量'
|
|
|
|
|
+ when A.net_mode = '3' then '手工计量'
|
|
|
|
|
+ else A.net_mode end netMode,
|
|
|
|
|
+ A.prediction_no predictionNo,
|
|
|
|
|
+ A.car_No carNo,
|
|
|
|
|
+ A.conveyance_type conveyanceType,
|
|
|
|
|
+ A.matter_no matterNo,
|
|
|
|
|
+ A.matter_name matterName,
|
|
|
|
|
+ to_char(round(A.gross_Weight/1000, 2),'FM9999999999999999.00') grossWeight,
|
|
|
|
|
+ to_char(round(A.tare_weight/1000, 2),'FM9999999999999999.00') tareWeight,
|
|
|
|
|
+ to_char(round(A.net_weight/1000, 2),'FM9999999999999999.00') netWeight,
|
|
|
|
|
+ A.forwarding_unit_name forwardingUnitName,
|
|
|
|
|
+ A.receiving_uint_name receivingUintName,
|
|
|
|
|
+ case when A.meter_type_Name = 'SendToOutTms' then '外发'
|
|
|
|
|
+ when A.meter_type_Name = 'GM2GM' or A.meter_type_name = 'InnerTms' then '厂内转储'
|
|
|
|
|
+ when A.meter_type_Name = 'PO2GM' then '外进'
|
|
|
|
|
+ else A.meter_type_Name end meterTypeName,
|
|
|
|
|
+ A.theory_amount theoryAmount,
|
|
|
|
|
+ A.gross_time grossTime,
|
|
|
|
|
+ A.base_spot1_name baseSpot1Name,
|
|
|
|
|
+ A.gross_man_name grossManName,
|
|
|
|
|
+ A.tare_time tareTime,
|
|
|
|
|
+ A.base_spot2_name baseSpot2Name,
|
|
|
|
|
+ A.tare_man_name tareManName,
|
|
|
|
|
+ case when A.value_flag = '0' then '作废'
|
|
|
|
|
+ when A.value_flag = '1' then '有效-未上传'
|
|
|
|
|
+ when A.value_flag = '2' then '有效-已上传'
|
|
|
|
|
+ else A.value_flag end valueFlag,
|
|
|
|
|
+ case when A.upload_flag = '1' then '待上传'
|
|
|
|
|
+ when A.upload_flag = '2' then '已上传'
|
|
|
|
|
+ else A.upload_flag end uploadFlag
|
|
|
|
|
+ from meter_work_car_actual A
|
|
|
|
|
+ left join meter_work_check_first_actual B
|
|
|
|
|
+ on A.actual_no = B.check_id
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and A.actual_no not in (
|
|
|
|
|
+ select distinct C.check_id
|
|
|
|
|
+ from meter_work_check_first_actual C
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ and B.value_flag = '1'
|
|
|
|
|
+ and B.type_no = '001002001')
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and A.net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ and A.net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by A.net_time desc
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|