|
|
@ -25,41 +25,42 @@
|
|
|
|
<result column="CORPID" jdbcType="VARCHAR" property="corpid" />
|
|
|
|
<result column="CORPID" jdbcType="VARCHAR" property="corpid" />
|
|
|
|
<result column="CORPNAME" jdbcType="VARCHAR" property="corpname" />
|
|
|
|
<result column="CORPNAME" jdbcType="VARCHAR" property="corpname" />
|
|
|
|
<result column="REMARK" jdbcType="TIMESTAMP" property="remark" />
|
|
|
|
<result column="REMARK" jdbcType="TIMESTAMP" property="remark" />
|
|
|
|
|
|
|
|
<result column="REMARK1" jdbcType="VARCHAR" property="remark" />
|
|
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE,
|
|
|
|
CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE,
|
|
|
|
YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE,
|
|
|
|
YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE,
|
|
|
|
INVCODE, INVNAME, CORPID, CORPNAME, REMARK
|
|
|
|
INVCODE, INVNAME, CORPID, CORPNAME, REMARK, REMARK1
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterList" resultType="com.glxp.mipsdl.entity.njxyy.A005">
|
|
|
|
<select id="filterList" resultType="com.glxp.mipsdl.entity.njxyy.A005">
|
|
|
|
SELECT CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE,
|
|
|
|
SELECT CPMCTYMC, THRCODE, AMECODE, GGXH, BATCHNO, MEASNAME, PRICE, PRODUCTIONDATE, EXPIREDATE,
|
|
|
|
YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE,
|
|
|
|
YLQXZCRBARMC, ZCZBHHZBAPZBH, MANUFACTURER, MANUFACTORYCODE, AMOUNT, RECOUNT, INOUTTYPE,
|
|
|
|
INVCODE, INVNAME, CORPID, CORPNAME, REMARK
|
|
|
|
INVCODE, INVNAME, CORPID, CORPNAME, REMARK, REMARK1
|
|
|
|
FROM a005
|
|
|
|
FROM a005
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
|
|
|
|
<if test="startDate != null and databaseProductName == 'Oracle'">
|
|
|
|
<if test="startDate != null and databaseProductName == 'Oracle'">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
|
and TRUNC(REMARK) >= TO_DATE(#{startDate} , 'YYYY-MM-DD')
|
|
|
|
and REMARK1 >= #{startDate}
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="endDate != null and databaseProductName == 'Oracle'">
|
|
|
|
<if test="endDate != null and databaseProductName == 'Oracle'">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
|
and TRUNC(REMARK) <= TO_DATE(#{endDate} , 'YYYY-MM-DD')
|
|
|
|
and REMARK1 <= #{endDate}
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<if test="startDate != null and databaseProductName == 'MySql'">
|
|
|
|
<if test="startDate != null and databaseProductName == 'MySQL'">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
|
and REMARK >= (#{startDate}
|
|
|
|
and REMARK1 >= #{startDate}
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="endDate != null and databaseProductName == 'MySql'">
|
|
|
|
<if test="endDate != null and databaseProductName == 'MySQL'">
|
|
|
|
<![CDATA[
|
|
|
|
<![CDATA[
|
|
|
|
and REMARK <= #{endDate}
|
|
|
|
and REMARK1 <= #{endDate}
|
|
|
|
]]>
|
|
|
|
]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|