feat: 下载高级搜索 收货发货
parent
314f059fe9
commit
0b380675c8
@ -1,96 +1,96 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.glxp.mipsdl.thirddao.ctqyy.VInsurNationGoodsPhysicMapper">
|
<mapper namespace="com.glxp.mipsdl.thirddao.ctqyy.VInsurNationGoodsPhysicMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsPhysic">
|
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsPhysic">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
<!--@Table v_insur_nation_goods_physic-->
|
<!--@Table v_insur_nation_goods_physic-->
|
||||||
<result column="MED_LIST_CODG" jdbcType="VARCHAR" property="MED_LIST_CODG" />
|
<result column="MED_LIST_CODG" jdbcType="VARCHAR" property="MED_LIST_CODG"/>
|
||||||
<result column="FIXMEDINS_HILIST_ID" jdbcType="VARCHAR" property="FIXMEDINS_HILIST_ID" />
|
<result column="FIXMEDINS_HILIST_ID" jdbcType="VARCHAR" property="FIXMEDINS_HILIST_ID"/>
|
||||||
<result column="FIXMEDINS_HILIST_NAME" jdbcType="VARCHAR" property="FIXMEDINS_HILIST_NAME" />
|
<result column="FIXMEDINS_HILIST_NAME" jdbcType="VARCHAR" property="FIXMEDINS_HILIST_NAME"/>
|
||||||
<result column="FIXMEDINS_BCHNO" jdbcType="VARCHAR" property="FIXMEDINS_BCHNO" />
|
<result column="FIXMEDINS_BCHNO" jdbcType="VARCHAR" property="FIXMEDINS_BCHNO"/>
|
||||||
<result column="PRSC_DR_CERT_TYPE" jdbcType="CHAR" property="PRSC_DR_CERT_TYPE" />
|
<result column="PRSC_DR_CERT_TYPE" jdbcType="CHAR" property="PRSC_DR_CERT_TYPE"/>
|
||||||
<result column="PRSC_DR_CERTNO" jdbcType="VARCHAR" property="PRSC_DR_CERTNO" />
|
<result column="PRSC_DR_CERTNO" jdbcType="VARCHAR" property="PRSC_DR_CERTNO"/>
|
||||||
<result column="PRSC_DR_NAME" jdbcType="VARCHAR" property="PRSC_DR_NAME" />
|
<result column="PRSC_DR_NAME" jdbcType="VARCHAR" property="PRSC_DR_NAME"/>
|
||||||
<result column="PHAR_CERT_TYPE" jdbcType="CHAR" property="PHAR_CERT_TYPE" />
|
<result column="PHAR_CERT_TYPE" jdbcType="CHAR" property="PHAR_CERT_TYPE"/>
|
||||||
<result column="PHAR_CERTNO" jdbcType="VARCHAR" property="PHAR_CERTNO" />
|
<result column="PHAR_CERTNO" jdbcType="VARCHAR" property="PHAR_CERTNO"/>
|
||||||
<result column="PHAR_NAME" jdbcType="VARCHAR" property="PHAR_NAME" />
|
<result column="PHAR_NAME" jdbcType="VARCHAR" property="PHAR_NAME"/>
|
||||||
<result column="PHAR_PRAC_CERT_NO" jdbcType="VARCHAR" property="PHAR_PRAC_CERT_NO" />
|
<result column="PHAR_PRAC_CERT_NO" jdbcType="VARCHAR" property="PHAR_PRAC_CERT_NO"/>
|
||||||
<result column="HI_FEESETL_TYPE" jdbcType="VARCHAR" property="HI_FEESETL_TYPE" />
|
<result column="HI_FEESETL_TYPE" jdbcType="VARCHAR" property="HI_FEESETL_TYPE"/>
|
||||||
<result column="SETL_ID" jdbcType="VARCHAR" property="SETL_ID" />
|
<result column="SETL_ID" jdbcType="VARCHAR" property="SETL_ID"/>
|
||||||
<result column="MDTRT_SN" jdbcType="VARCHAR" property="MDTRT_SN" />
|
<result column="MDTRT_SN" jdbcType="VARCHAR" property="MDTRT_SN"/>
|
||||||
<result column="PSN_NO" jdbcType="VARCHAR" property="PSN_NO" />
|
<result column="PSN_NO" jdbcType="VARCHAR" property="PSN_NO"/>
|
||||||
<result column="PSN_CERT_TYPE" jdbcType="CHAR" property="PSN_CERT_TYPE" />
|
<result column="PSN_CERT_TYPE" jdbcType="CHAR" property="PSN_CERT_TYPE"/>
|
||||||
<result column="CERTNO" jdbcType="VARCHAR" property="CERTNO" />
|
<result column="CERTNO" jdbcType="VARCHAR" property="CERTNO"/>
|
||||||
<result column="PSN_NAME" jdbcType="VARCHAR" property="PSN_NAME" />
|
<result column="PSN_NAME" jdbcType="VARCHAR" property="PSN_NAME"/>
|
||||||
<result column="MANU_LOTNUM" jdbcType="VARCHAR" property="MANU_LOTNUM" />
|
<result column="MANU_LOTNUM" jdbcType="VARCHAR" property="MANU_LOTNUM"/>
|
||||||
<result column="MANU_DATE" jdbcType="TIMESTAMP" property="MANU_DATE" />
|
<result column="MANU_DATE" jdbcType="TIMESTAMP" property="MANU_DATE"/>
|
||||||
<result column="EXPY_END" jdbcType="TIMESTAMP" property="EXPY_END" />
|
<result column="EXPY_END" jdbcType="TIMESTAMP" property="EXPY_END"/>
|
||||||
<result column="RX_FLAG" jdbcType="CHAR" property="RX_FLAG" />
|
<result column="RX_FLAG" jdbcType="CHAR" property="RX_FLAG"/>
|
||||||
<result column="TRDN_FLAG" jdbcType="CHAR" property="TRDN_FLAG" />
|
<result column="TRDN_FLAG" jdbcType="CHAR" property="TRDN_FLAG"/>
|
||||||
<result column="FINL_TRNS_PRIC" jdbcType="DECIMAL" property="FINL_TRNS_PRIC" />
|
<result column="FINL_TRNS_PRIC" jdbcType="DECIMAL" property="FINL_TRNS_PRIC"/>
|
||||||
<result column="RXNO" jdbcType="VARCHAR" property="RXNO" />
|
<result column="RXNO" jdbcType="VARCHAR" property="RXNO"/>
|
||||||
<result column="RX_CIRC_FLAG" jdbcType="CHAR" property="RX_CIRC_FLAG" />
|
<result column="RX_CIRC_FLAG" jdbcType="CHAR" property="RX_CIRC_FLAG"/>
|
||||||
<result column="RTAL_DOCNO" jdbcType="VARCHAR" property="RTAL_DOCNO" />
|
<result column="RTAL_DOCNO" jdbcType="VARCHAR" property="RTAL_DOCNO"/>
|
||||||
<result column="STOOUT_NO" jdbcType="VARCHAR" property="STOOUT_NO" />
|
<result column="STOOUT_NO" jdbcType="VARCHAR" property="STOOUT_NO"/>
|
||||||
<result column="BCHNO" jdbcType="VARCHAR" property="BCHNO" />
|
<result column="BCHNO" jdbcType="VARCHAR" property="BCHNO"/>
|
||||||
<result column="RUG_PROD_BARC" jdbcType="VARCHAR" property="RUG_PROD_BARC" />
|
<result column="RUG_PROD_BARC" jdbcType="VARCHAR" property="RUG_PROD_BARC"/>
|
||||||
<result column="SHELF_POSI" jdbcType="VARCHAR" property="SHELF_POSI" />
|
<result column="SHELF_POSI" jdbcType="VARCHAR" property="SHELF_POSI"/>
|
||||||
<result column="SEL_RETN_CNT" jdbcType="INTEGER" property="SEL_RETN_CNT" />
|
<result column="SEL_RETN_CNT" jdbcType="INTEGER" property="SEL_RETN_CNT"/>
|
||||||
<result column="SEL_RETN_TIME" jdbcType="TIMESTAMP" property="SEL_RETN_TIME" />
|
<result column="SEL_RETN_TIME" jdbcType="TIMESTAMP" property="SEL_RETN_TIME"/>
|
||||||
<result column="SEL_RETN_OPTER_NAME" jdbcType="VARCHAR" property="SEL_RETN_OPTER_NAME" />
|
<result column="SEL_RETN_OPTER_NAME" jdbcType="VARCHAR" property="SEL_RETN_OPTER_NAME"/>
|
||||||
<result column="MEMO" jdbcType="LONGVARCHAR" property="MEMO" />
|
<result column="MEMO" jdbcType="LONGVARCHAR" property="MEMO"/>
|
||||||
<result column="MDTRT_SETL_TYPE" jdbcType="CHAR" property="MDTRT_SETL_TYPE" />
|
<result column="MDTRT_SETL_TYPE" jdbcType="CHAR" property="MDTRT_SETL_TYPE"/>
|
||||||
<result column="DRUGTRACINFO" jdbcType="LONGVARCHAR" property="DRUGTRACINFO" />
|
<result column="DRUGTRACINFO" jdbcType="LONGVARCHAR" property="DRUGTRACINFO"/>
|
||||||
<result column="APPLY_NO" jdbcType="VARCHAR" property="APPLY_NO" />
|
<result column="APPLY_NO" jdbcType="VARCHAR" property="APPLY_NO"/>
|
||||||
<result column="SETTLE_NO" jdbcType="VARCHAR" property="SETTLE_NO" />
|
<result column="SETTLE_NO" jdbcType="VARCHAR" property="SETTLE_NO"/>
|
||||||
<result column="SICK_ID" jdbcType="VARCHAR" property="SICK_ID" />
|
<result column="SICK_ID" jdbcType="VARCHAR" property="SICK_ID"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
MED_LIST_CODG, FIXMEDINS_HILIST_ID, FIXMEDINS_HILIST_NAME, FIXMEDINS_BCHNO, PRSC_DR_CERT_TYPE,
|
MED_LIST_CODG, FIXMEDINS_HILIST_ID, FIXMEDINS_HILIST_NAME, FIXMEDINS_BCHNO, PRSC_DR_CERT_TYPE,
|
||||||
PRSC_DR_CERTNO, PRSC_DR_NAME, PHAR_CERT_TYPE, PHAR_CERTNO, PHAR_NAME, PHAR_PRAC_CERT_NO,
|
PRSC_DR_CERTNO, PRSC_DR_NAME, PHAR_CERT_TYPE, PHAR_CERTNO, PHAR_NAME, PHAR_PRAC_CERT_NO,
|
||||||
HI_FEESETL_TYPE, SETL_ID, MDTRT_SN, PSN_NO, PSN_CERT_TYPE, CERTNO, PSN_NAME, MANU_LOTNUM,
|
HI_FEESETL_TYPE, SETL_ID, MDTRT_SN, PSN_NO, PSN_CERT_TYPE, CERTNO, PSN_NAME, MANU_LOTNUM,
|
||||||
MANU_DATE, EXPY_END, RX_FLAG, TRDN_FLAG, FINL_TRNS_PRIC, RXNO, RX_CIRC_FLAG, RTAL_DOCNO,
|
MANU_DATE, EXPY_END, RX_FLAG, TRDN_FLAG, FINL_TRNS_PRIC, RXNO, RX_CIRC_FLAG, RTAL_DOCNO,
|
||||||
STOOUT_NO, BCHNO, RUG_PROD_BARC, SHELF_POSI, SEL_RETN_CNT, SEL_RETN_TIME, SEL_RETN_OPTER_NAME,
|
STOOUT_NO, BCHNO, RUG_PROD_BARC, SHELF_POSI, SEL_RETN_CNT, SEL_RETN_TIME, SEL_RETN_OPTER_NAME,
|
||||||
MEMO, MDTRT_SETL_TYPE, DRUGTRACINFO, APPLY_NO, SETTLE_NO, SICK_ID
|
MEMO, MDTRT_SETL_TYPE, DRUGTRACINFO, APPLY_NO, SETTLE_NO, SICK_ID
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsPhysic">
|
|
||||||
SELECT
|
|
||||||
RXNO
|
|
||||||
FROM
|
|
||||||
v_insur_nation_goods_physic
|
|
||||||
<where>
|
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.startTime != null">
|
|
||||||
<![CDATA[
|
|
||||||
and SEL_RETN_TIME >= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.startTime}, '%Y-%m-%d %H:%i:%S')
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.endTime != null">
|
|
||||||
<![CDATA[
|
|
||||||
and SEL_RETN_TIME <= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.endTime}, '%Y-%m-%d %H:%i:%S')
|
|
||||||
]]>
|
|
||||||
</if>
|
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.code != null and udiwmsBasicSkPrescribeRequest.code != ''">
|
|
||||||
and (RXNO = #{udiwmsBasicSkPrescribeRequest.code}
|
|
||||||
or STOOUT_NO = #{udiwmsBasicSkPrescribeRequest.code}
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.key != null and udiwmsBasicSkPrescribeRequest.key != ''">
|
|
||||||
and (STOOUT_NO like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
|
||||||
or RXNO like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
|
||||||
or PSN_NAME like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
|
||||||
or PSN_NO like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
GROUP BY
|
|
||||||
RXNO
|
|
||||||
ORDER BY
|
|
||||||
RXNO
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsPhysic">
|
||||||
|
SELECT RXNO
|
||||||
|
FROM v_insur_nation_goods_physic
|
||||||
|
<where>
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.startTime != null">
|
||||||
|
<![CDATA[
|
||||||
|
and SEL_RETN_TIME >= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.startTime}
|
||||||
|
, 'YYYY-MM-DD HH24:MI:SS')
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.endTime != null">
|
||||||
|
<![CDATA[
|
||||||
|
and SEL_RETN_TIME <= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.endTime}
|
||||||
|
, 'YYYY-MM-DD HH24:MI:SS')
|
||||||
|
]]>
|
||||||
|
</if>
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.code != null and udiwmsBasicSkPrescribeRequest.code != ''">
|
||||||
|
and (RXNO = #{udiwmsBasicSkPrescribeRequest.code}
|
||||||
|
or STOOUT_NO = #{udiwmsBasicSkPrescribeRequest.code}
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.fromCorpName != null and udiwmsBasicSkPrescribeRequest.fromCorpName != ''">
|
||||||
|
and (PSN_NAME like '%' || #{udiwmsBasicSkPrescribeRequest.fromCorpName} || '%' )
|
||||||
|
</if>
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.key != null and udiwmsBasicSkPrescribeRequest.key != ''">
|
||||||
|
and (STOOUT_NO like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
|
||||||
|
or RXNO like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
|
||||||
|
or PSN_NAME like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
|
||||||
|
or PSN_NO like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
GROUP BY
|
||||||
|
RXNO
|
||||||
|
ORDER BY
|
||||||
|
RXNO
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@ -1,73 +1,75 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.glxp.mipsdl.thirddao.ctqyy.VInsurNationGoodsReturnMapper">
|
<mapper namespace="com.glxp.mipsdl.thirddao.ctqyy.VInsurNationGoodsReturnMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsReturn">
|
<resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsReturn">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
<!--@Table v_insur_nation_goods_return-->
|
<!--@Table v_insur_nation_goods_return-->
|
||||||
<result column="MED_LIST_CODG" jdbcType="VARCHAR" property="MED_LIST_CODG" />
|
<result column="MED_LIST_CODG" jdbcType="VARCHAR" property="MED_LIST_CODG"/>
|
||||||
<result column="FIXMEDINS_HILIST_ID" jdbcType="INTEGER" property="FIXMEDINS_HILIST_ID" />
|
<result column="FIXMEDINS_HILIST_ID" jdbcType="INTEGER" property="FIXMEDINS_HILIST_ID"/>
|
||||||
<result column="FIXMEDINS_HILIST_NAME" jdbcType="VARCHAR" property="FIXMEDINS_HILIST_NAME" />
|
<result column="FIXMEDINS_HILIST_NAME" jdbcType="VARCHAR" property="FIXMEDINS_HILIST_NAME"/>
|
||||||
<result column="FIXMEDINS_BCHNO" jdbcType="INTEGER" property="FIXMEDINS_BCHNO" />
|
<result column="FIXMEDINS_BCHNO" jdbcType="INTEGER" property="FIXMEDINS_BCHNO"/>
|
||||||
<result column="SETL_ID" jdbcType="INTEGER" property="SETL_ID" />
|
<result column="SETL_ID" jdbcType="INTEGER" property="SETL_ID"/>
|
||||||
<result column="PSN_NO" jdbcType="INTEGER" property="PSN_NO" />
|
<result column="PSN_NO" jdbcType="INTEGER" property="PSN_NO"/>
|
||||||
<result column="PSN_CERT_TYPE" jdbcType="VARCHAR" property="PSN_CERT_TYPE" />
|
<result column="PSN_CERT_TYPE" jdbcType="VARCHAR" property="PSN_CERT_TYPE"/>
|
||||||
<result column="CERTNO" jdbcType="VARCHAR" property="CERTNO" />
|
<result column="CERTNO" jdbcType="VARCHAR" property="CERTNO"/>
|
||||||
<result column="PSN_NAME" jdbcType="VARCHAR" property="PSN_NAME" />
|
<result column="PSN_NAME" jdbcType="VARCHAR" property="PSN_NAME"/>
|
||||||
<result column="MANU_LOTNUM" jdbcType="VARCHAR" property="MANU_LOTNUM" />
|
<result column="MANU_LOTNUM" jdbcType="VARCHAR" property="MANU_LOTNUM"/>
|
||||||
<result column="MANU_DATE" jdbcType="DATE" property="MANU_DATE" />
|
<result column="MANU_DATE" jdbcType="DATE" property="MANU_DATE"/>
|
||||||
<result column="EXPY_END" jdbcType="DATE" property="EXPY_END" />
|
<result column="EXPY_END" jdbcType="DATE" property="EXPY_END"/>
|
||||||
<result column="RX_FLAG" jdbcType="VARCHAR" property="RX_FLAG" />
|
<result column="RX_FLAG" jdbcType="VARCHAR" property="RX_FLAG"/>
|
||||||
<result column="TRDN_FLAG" jdbcType="VARCHAR" property="TRDN_FLAG" />
|
<result column="TRDN_FLAG" jdbcType="VARCHAR" property="TRDN_FLAG"/>
|
||||||
<result column="FINL_TRNS_PRIC" jdbcType="DECIMAL" property="FINL_TRNS_PRIC" />
|
<result column="FINL_TRNS_PRIC" jdbcType="DECIMAL" property="FINL_TRNS_PRIC"/>
|
||||||
<result column="SEL_RETN_CNT" jdbcType="INTEGER" property="SEL_RETN_CNT" />
|
<result column="SEL_RETN_CNT" jdbcType="INTEGER" property="SEL_RETN_CNT"/>
|
||||||
<result column="SEL_RETN_TIME" jdbcType="DATE" property="SEL_RETN_TIME" />
|
<result column="SEL_RETN_TIME" jdbcType="DATE" property="SEL_RETN_TIME"/>
|
||||||
<result column="SEL_RETN_OPTER_NAME" jdbcType="VARCHAR" property="SEL_RETN_OPTER_NAME" />
|
<result column="SEL_RETN_OPTER_NAME" jdbcType="VARCHAR" property="SEL_RETN_OPTER_NAME"/>
|
||||||
<result column="MEMO" jdbcType="VARCHAR" property="MEMO" />
|
<result column="MEMO" jdbcType="VARCHAR" property="MEMO"/>
|
||||||
<result column="MEDINS_PROL_SEL_NO" jdbcType="VARCHAR" property="MEDINS_PROL_SEL_NO" />
|
<result column="MEDINS_PROL_SEL_NO" jdbcType="VARCHAR" property="MEDINS_PROL_SEL_NO"/>
|
||||||
<result column="DRUGTRACINFO" jdbcType="VARCHAR" property="DRUGTRACINFO" />
|
<result column="DRUGTRACINFO" jdbcType="VARCHAR" property="DRUGTRACINFO"/>
|
||||||
<result column="SETTLE_NO" jdbcType="VARCHAR" property="SETTLE_NO" />
|
<result column="SETTLE_NO" jdbcType="VARCHAR" property="SETTLE_NO"/>
|
||||||
<result column="SICK_ID" jdbcType="VARCHAR" property="SICK_ID" />
|
<result column="SICK_ID" jdbcType="VARCHAR" property="SICK_ID"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
MED_LIST_CODG, FIXMEDINS_HILIST_ID, FIXMEDINS_HILIST_NAME, FIXMEDINS_BCHNO, SETL_ID,
|
MED_LIST_CODG, FIXMEDINS_HILIST_ID, FIXMEDINS_HILIST_NAME, FIXMEDINS_BCHNO, SETL_ID,
|
||||||
PSN_NO, PSN_CERT_TYPE, CERTNO, PSN_NAME, MANU_LOTNUM, MANU_DATE, EXPY_END, RX_FLAG,
|
PSN_NO, PSN_CERT_TYPE, CERTNO, PSN_NAME, MANU_LOTNUM, MANU_DATE, EXPY_END, RX_FLAG,
|
||||||
TRDN_FLAG, FINL_TRNS_PRIC, SEL_RETN_CNT, SEL_RETN_TIME, SEL_RETN_OPTER_NAME, MEMO,
|
TRDN_FLAG, FINL_TRNS_PRIC, SEL_RETN_CNT, SEL_RETN_TIME, SEL_RETN_OPTER_NAME, MEMO,
|
||||||
MEDINS_PROL_SEL_NO, DRUGTRACINFO, SETTLE_NO, SICK_ID
|
MEDINS_PROL_SEL_NO, DRUGTRACINFO, SETTLE_NO, SICK_ID
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsReturn">
|
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VInsurNationGoodsReturn">
|
||||||
SELECT
|
SELECT APPLY_NO
|
||||||
APPLY_NO
|
FROM V_INSUR_NATION_GOODS_RETURN
|
||||||
FROM
|
<where>
|
||||||
V_INSUR_NATION_GOODS_RETURN
|
<if test="udiwmsBasicSkPrescribeRequest.startTime != null">
|
||||||
<where>
|
<![CDATA[
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.startTime != null">
|
and SEL_RETN_TIME >= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.startTime}
|
||||||
<![CDATA[
|
, 'YYYY-MM-DD HH24:MI:SS')
|
||||||
and SEL_RETN_TIME >= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.startTime}, '%Y-%m-%d %H:%i:%S')
|
]]>
|
||||||
]]>
|
</if>
|
||||||
</if>
|
<if test="udiwmsBasicSkPrescribeRequest.endTime != null">
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.endTime != null">
|
<![CDATA[
|
||||||
<![CDATA[
|
and SEL_RETN_TIME <= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.endTime}
|
||||||
and SEL_RETN_TIME <= DATE_FORMAT(#{udiwmsBasicSkPrescribeRequest.endTime}, '%Y-%m-%d %H:%i:%S')
|
, 'YYYY-MM-DD HH24:MI:SS')
|
||||||
]]>
|
]]>
|
||||||
</if>
|
</if>
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.code != null and udiwmsBasicSkPrescribeRequest.code != ''">
|
<if test="udiwmsBasicSkPrescribeRequest.code != null and udiwmsBasicSkPrescribeRequest.code != ''">
|
||||||
and (APPLY_NO = #{udiwmsBasicSkPrescribeRequest.code})
|
and (APPLY_NO = #{udiwmsBasicSkPrescribeRequest.code})
|
||||||
</if>
|
</if>
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.fromCorpName != null and udiwmsBasicSkPrescribeRequest.fromCorpName != ''">
|
||||||
<if test="udiwmsBasicSkPrescribeRequest.key != null and udiwmsBasicSkPrescribeRequest.key != ''">
|
and (PSN_NAME like '%' || #{udiwmsBasicSkPrescribeRequest.fromCorpName} || '%' )
|
||||||
and (APPLY_NO like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
</if>
|
||||||
or PSN_NAME like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
|
||||||
or PSN_NO like concat('%', #{udiwmsBasicSkPrescribeRequest.key}, '%')
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
GROUP BY
|
|
||||||
APPLY_NO
|
|
||||||
ORDER BY
|
|
||||||
APPLY_NO
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
<if test="udiwmsBasicSkPrescribeRequest.key != null and udiwmsBasicSkPrescribeRequest.key != ''">
|
||||||
|
and (APPLY_NO like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
|
||||||
|
or PSN_NAME like '%' ||#{udiwmsBasicSkPrescribeRequest.key} || '%'
|
||||||
|
or PSN_NO like '%' || #{udiwmsBasicSkPrescribeRequest.key} ||'%'
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
GROUP BY
|
||||||
|
APPLY_NO
|
||||||
|
ORDER BY
|
||||||
|
APPLY_NO
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
@ -1,28 +1,24 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.glxp.mipsdl.thirddao.ctqyy.VYpzsPlanInfoMapper">
|
<mapper namespace="com.glxp.mipsdl.thirddao.ctqyy.VYpzsPlanInfoMapper">
|
||||||
|
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VYpzsPlanInfo">
|
||||||
|
SELECT CGDBH
|
||||||
|
FROM V_YPZS_PLAN_INFO
|
||||||
|
<where>
|
||||||
|
<if test="udiwmsThrOrderRequest.billNo != null and udiwmsThrOrderRequest.billNo != ''">
|
||||||
|
and CGDBH like '%' || #{udiwmsThrOrderRequest.billNo} || '%'
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="udiwmsThrOrderRequest.keyWords != null and udiwmsThrOrderRequest.keyWords != ''">
|
||||||
<select id="selectGroupedWithPagination" resultType="com.glxp.mipsdl.entity.ctqyy.VYpzsPlanInfo">
|
and (CGDBH like '%' || #{udiwmsThrOrderRequest.keyWords} || '%'
|
||||||
SELECT
|
)
|
||||||
CGDBH
|
</if>
|
||||||
FROM
|
<if test="udiwmsThrOrderRequest.fromCorpName != null and udiwmsThrOrderRequest.fromCorpName != ''">
|
||||||
V_YPZS_PLAN_INFO
|
and (SCQYMC like '%' || #{udiwmsThrOrderRequest.fromCorpName} || '%'
|
||||||
<where>
|
)
|
||||||
|
</if>
|
||||||
<if test="udiwmsThrOrderRequest.billNo != null and udiwmsThrOrderRequest.billNo != ''">
|
</where>
|
||||||
and CGDBH like concat('%', #{udiwmsThrOrderRequest.billNo}, '%')
|
GROUP BY CGDBH
|
||||||
</if>
|
ORDER BY CGDBH
|
||||||
|
</select>
|
||||||
<if test="udiwmsThrOrderRequest.keyWords != null and udiwmsThrOrderRequest.keyWords != ''">
|
|
||||||
and (CGDBH like concat('%', #{udiwmsThrOrderRequest.keyWords}, '%')
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
GROUP BY
|
|
||||||
CGDBH
|
|
||||||
ORDER BY
|
|
||||||
CGDBH
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
Reference in New Issue