|
|
|
@ -4,26 +4,26 @@
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.ctqyy.VYpzsIoInfo">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
<!--@Table v_ypzs_io_info-->
|
|
|
|
|
<result column="RECEIPT_NUMBER" jdbcType="VARCHAR" property="RECEIPT_NUMBER" />
|
|
|
|
|
<result column="IO_FLAG" jdbcType="CHAR" property="IO_FLAG" />
|
|
|
|
|
<result column="IO_SORT" jdbcType="INTEGER" property="IO_SORT" />
|
|
|
|
|
<result column="SORT_NAME" jdbcType="VARCHAR" property="SORT_NAME" />
|
|
|
|
|
<result column="CONSIGNOR" jdbcType="VARCHAR" property="CONSIGNOR" />
|
|
|
|
|
<result column="CONSIGNOR_NAME" jdbcType="VARCHAR" property="CONSIGNOR_NAME" />
|
|
|
|
|
<result column="CONSIGNEE" jdbcType="VARCHAR" property="CONSIGNEE" />
|
|
|
|
|
<result column="CONSIGNEE_NAME" jdbcType="VARCHAR" property="CONSIGNEE_NAME" />
|
|
|
|
|
<result column="KEEP_BOOK_TIME" jdbcType="TIMESTAMP" property="KEEP_BOOK_TIME" />
|
|
|
|
|
<result column="KEEP_BOOK_OPERATOR" jdbcType="VARCHAR" property="KEEP_BOOK_OPERATOR" />
|
|
|
|
|
<result column="PHYSIC_CODE" jdbcType="VARCHAR" property="PHYSIC_CODE" />
|
|
|
|
|
<result column="PHYSIC_NAME" jdbcType="VARCHAR" property="PHYSIC_NAME" />
|
|
|
|
|
<result column="BATCH_NO" jdbcType="VARCHAR" property="BATCH_NO" />
|
|
|
|
|
<result column="BATCH_NUMBER" jdbcType="BIGINT" property="BATCH_NUMBER" />
|
|
|
|
|
<result column="QUANTITY" jdbcType="INTEGER" property="QUANTITY" />
|
|
|
|
|
<result column="PACK_UNIT1" jdbcType="VARCHAR" property="PACK_UNIT1" />
|
|
|
|
|
<result column="IMPORT_PRICE" jdbcType="DECIMAL" property="IMPORT_PRICE" />
|
|
|
|
|
<result column="IMPORT_MONEY" jdbcType="DECIMAL" property="IMPORT_MONEY" />
|
|
|
|
|
<result column="RETAIL_PRICE" jdbcType="DECIMAL" property="RETAIL_PRICE" />
|
|
|
|
|
<result column="RETAIL_MONEY" jdbcType="DECIMAL" property="RETAIL_MONEY" />
|
|
|
|
|
<result column="RECEIPT_NUMBER" jdbcType="VARCHAR" property="RECEIPT_NUMBER"/>
|
|
|
|
|
<result column="IO_FLAG" jdbcType="CHAR" property="IO_FLAG"/>
|
|
|
|
|
<result column="IO_SORT" jdbcType="INTEGER" property="IO_SORT"/>
|
|
|
|
|
<result column="SORT_NAME" jdbcType="VARCHAR" property="SORT_NAME"/>
|
|
|
|
|
<result column="CONSIGNOR" jdbcType="VARCHAR" property="CONSIGNOR"/>
|
|
|
|
|
<result column="CONSIGNOR_NAME" jdbcType="VARCHAR" property="CONSIGNOR_NAME"/>
|
|
|
|
|
<result column="CONSIGNEE" jdbcType="VARCHAR" property="CONSIGNEE"/>
|
|
|
|
|
<result column="CONSIGNEE_NAME" jdbcType="VARCHAR" property="CONSIGNEE_NAME"/>
|
|
|
|
|
<result column="KEEP_BOOK_TIME" jdbcType="TIMESTAMP" property="KEEP_BOOK_TIME"/>
|
|
|
|
|
<result column="KEEP_BOOK_OPERATOR" jdbcType="VARCHAR" property="KEEP_BOOK_OPERATOR"/>
|
|
|
|
|
<result column="PHYSIC_CODE" jdbcType="VARCHAR" property="PHYSIC_CODE"/>
|
|
|
|
|
<result column="PHYSIC_NAME" jdbcType="VARCHAR" property="PHYSIC_NAME"/>
|
|
|
|
|
<result column="BATCH_NO" jdbcType="VARCHAR" property="BATCH_NO"/>
|
|
|
|
|
<result column="BATCH_NUMBER" jdbcType="BIGINT" property="BATCH_NUMBER"/>
|
|
|
|
|
<result column="QUANTITY" jdbcType="INTEGER" property="QUANTITY"/>
|
|
|
|
|
<result column="PACK_UNIT1" jdbcType="VARCHAR" property="PACK_UNIT1"/>
|
|
|
|
|
<result column="IMPORT_PRICE" jdbcType="DECIMAL" property="IMPORT_PRICE"/>
|
|
|
|
|
<result column="IMPORT_MONEY" jdbcType="DECIMAL" property="IMPORT_MONEY"/>
|
|
|
|
|
<result column="RETAIL_PRICE" jdbcType="DECIMAL" property="RETAIL_PRICE"/>
|
|
|
|
|
<result column="RETAIL_MONEY" jdbcType="DECIMAL" property="RETAIL_MONEY"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
@ -33,45 +33,40 @@
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VYpzsIoInfo">
|
|
|
|
|
SELECT
|
|
|
|
|
RECEIPT_NUMBER
|
|
|
|
|
FROM
|
|
|
|
|
v_ypzs_io_info
|
|
|
|
|
SELECT RECEIPT_NUMBER
|
|
|
|
|
FROM v_ypzs_io_info
|
|
|
|
|
<where>
|
|
|
|
|
<if test="udiwmsThrOrderRequest.startTime != null">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and KEEP_BOOK_TIME >= DATE_FORMAT(#{udiwmsThrOrderRequest.startTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
and KEEP_BOOK_TIME >= TO_DATE(#{udiwmsThrOrderRequest.startTime}
|
|
|
|
|
, 'YYYY-MM-DD HH24:MI:SS')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="udiwmsThrOrderRequest.endTime != null">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and KEEP_BOOK_TIME <= DATE_FORMAT(#{udiwmsThrOrderRequest.endTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
and KEEP_BOOK_TIME <= TO_DATE(#{udiwmsThrOrderRequest.endTime}
|
|
|
|
|
, 'YYYY-MM-DD HH24:MI:SS')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="udiwmsThrOrderRequest.corpName != null and udiwmsThrOrderRequest.corpName != ''">
|
|
|
|
|
and (CONSIGNOR_NAME like concat('%', #{udiwmsThrOrderRequest.corpName}, '%')
|
|
|
|
|
or CONSIGNEE_NAME like concat('%', #{udiwmsThrOrderRequest.corpName}, '%')
|
|
|
|
|
)
|
|
|
|
|
and (CONSIGNOR_NAME LIKE '%' || #{udiwmsThrOrderRequest.corpName} || '%'
|
|
|
|
|
or CONSIGNEE_NAME LIKE '%' || #{udiwmsThrOrderRequest.corpName} || '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="udiwmsThrOrderRequest.billNo != null and udiwmsThrOrderRequest.billNo != ''">
|
|
|
|
|
and PHYSIC_CODE like concat('%', #{udiwmsThrOrderRequest.billNo}, '%')
|
|
|
|
|
and PHYSIC_CODE LIKE '%' || #{udiwmsThrOrderRequest.billNo} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
<if test="udiwmsThrOrderRequest.busType != null and udiwmsThrOrderRequest.busType != ''">
|
|
|
|
|
and IO_SORT like concat('%', #{udiwmsThrOrderRequest.busType}, '%')
|
|
|
|
|
and IO_SORT LIKE '%' || #{udiwmsThrOrderRequest.busType} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="udiwmsThrOrderRequest.keyWords != null and udiwmsThrOrderRequest.keyWords != ''">
|
|
|
|
|
and (KEEP_BOOK_TIME like concat('%', #{udiwmsThrOrderRequest.keyWords}, '%')
|
|
|
|
|
or CONSIGNOR_NAME like concat('%', #{udiwmsThrOrderRequest.keyWords}, '%')
|
|
|
|
|
or CONSIGNEE_NAME like concat('%', #{udiwmsThrOrderRequest.keyWords}, '%')
|
|
|
|
|
or PHYSIC_CODE like concat('%', #{udiwmsThrOrderRequest.keyWords}, '%')
|
|
|
|
|
or IO_SORT like concat('%', #{udiwmsThrOrderRequest.keyWords}, '%')
|
|
|
|
|
)
|
|
|
|
|
and (KEEP_BOOK_TIME LIKE '%' || #{udiwmsThrOrderRequest.keyWords} || '%'
|
|
|
|
|
or CONSIGNOR_NAME LIKE '%' || #{udiwmsThrOrderRequest.keyWords} || '%'
|
|
|
|
|
or CONSIGNEE_NAME LIKE '%' || #{udiwmsThrOrderRequest.keyWords} || '%'
|
|
|
|
|
or PHYSIC_CODE LIKE '%' || #{udiwmsThrOrderRequest.keyWords} || '%'
|
|
|
|
|
or IO_SORT LIKE '%' || #{udiwmsThrOrderRequest.keyWords} || '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY
|
|
|
|
|
RECEIPT_NUMBER
|
|
|
|
|
ORDER BY
|
|
|
|
|
RECEIPT_NUMBER
|
|
|
|
|
</select>
|
|
|
|
|
GROUP BY RECEIPT_NUMBER
|
|
|
|
|
ORDER BY RECEIPT_NUMBER
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|