|
@@ -23,6 +23,7 @@
|
|
|
<result property="xm" column="xm"/>
|
|
|
<result property="transit" column="transit"/>
|
|
|
<result property="collectorName" column="collector_name"/>
|
|
|
+ <result property="cjqxqh" column="cjqxqh"/>
|
|
|
<result property="cjssxq" column="cjssxq"/>
|
|
|
<result property="mainKey" column="main_key"/>
|
|
|
<result property="modifyDate" column="modify_date"/>
|
|
@@ -56,34 +57,56 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAccountingDataVo">
|
|
|
- select d.id,
|
|
|
- d.jcsj,
|
|
|
- d.lxdh,
|
|
|
- d.address,
|
|
|
- d.batch_number,
|
|
|
- d.focus_person,
|
|
|
- d.jcjg,
|
|
|
- d.from_city,
|
|
|
- d.jcdd,
|
|
|
- d.cjdd,
|
|
|
- d.to_city,
|
|
|
- d.source,
|
|
|
- d.zjhm,
|
|
|
- d.cjsj,
|
|
|
- d.certificate_no_type,
|
|
|
- d.xm,
|
|
|
- d.transit,
|
|
|
- d.collector_name,
|
|
|
- d.cjssxq,
|
|
|
- d.main_key,
|
|
|
- d.modify_date,
|
|
|
- d.create_by,
|
|
|
- d.create_time,
|
|
|
- d.update_by,
|
|
|
- d.update_time
|
|
|
- from accounting_data d
|
|
|
+ select id,
|
|
|
+ jcsj,
|
|
|
+ lxdh,
|
|
|
+ address,
|
|
|
+ batch_number,
|
|
|
+ focus_person,
|
|
|
+ jcjg,
|
|
|
+ from_city,
|
|
|
+ jcdd,
|
|
|
+ cjdd,
|
|
|
+ to_city,
|
|
|
+ source,
|
|
|
+ zjhm,
|
|
|
+ cjsj,
|
|
|
+ certificate_no_type,
|
|
|
+ xm,
|
|
|
+ transit,
|
|
|
+ collector_name,
|
|
|
+ cjqxqh,
|
|
|
+ cjssxq,
|
|
|
+ main_key,
|
|
|
+ modify_date,
|
|
|
+ create_by,
|
|
|
+ create_time,
|
|
|
+ update_by,
|
|
|
+ update_time
|
|
|
+ from accounting_data
|
|
|
</sql>
|
|
|
|
|
|
+
|
|
|
+ <select id="nucleicAcidJcd" resultMap="AccountingDataResult"
|
|
|
+ parameterType="com.boman.web.core.domain.vo.AccountingDataVo">
|
|
|
+ <include refid="selectAccountingDataVo"/>
|
|
|
+ <where>
|
|
|
+ 1=1
|
|
|
+ <if test="zjhm != null and zjhm != ''">and zjhm = #{zjhm}</if>
|
|
|
+ <if test="xm != null and xm != ''">and xm like concat(#{xm}, '%')</if>
|
|
|
+ <if test="lxdh != null and lxdh != ''">and lxdh = #{lxdh}</if>
|
|
|
+ <if test="params.startTime != null and params.startTime != '' and params.startTime != 'null'">and
|
|
|
+ DATE_FORMAT(cjsj,'%Y-%m-%d %H:%i:%s') >= DATE_FORMAT(#{params.startTime},'%Y-%m-%d %H:%i:%s')
|
|
|
+ </if>
|
|
|
+ <if test="params.endTime != null and params.endTime != '' and params.endTime != 'null'">and
|
|
|
+ DATE_FORMAT(cjsj,'%Y-%m-%d %H:%i:%s') <= DATE_FORMAT(#{params.endTime},'%Y-%m-%d %H:%i:%s')
|
|
|
+ </if>
|
|
|
+ <if test="cjssxq != null and cjssxq != ''">and cjssxq like concat('%',#{cjssxq}, '%')</if>
|
|
|
+ <if test="cjqxqh != null and cjqxqh != ''">and cjqxqh = #{cjqxqh}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
<select id="selectAccountingDataHjList" parameterType="com.boman.web.core.domain.vo.AccountingDataVo"
|
|
|
resultMap="AccountingDataResult">
|
|
|
SELECT
|
|
@@ -263,6 +286,7 @@
|
|
|
<if test="certificateNoType != null">certificate_no_type,</if>
|
|
|
<if test="xm != null">xm,</if>
|
|
|
<if test="collectorName != null">collector_name,</if>
|
|
|
+ <if test="cjqxqh != null">cjqxqh,</if>
|
|
|
<if test="cjssxq != null">cjssxq,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
create_time
|
|
@@ -285,6 +309,7 @@
|
|
|
<if test="certificateNoType != null">#{certificateNoType},</if>
|
|
|
<if test="xm != null">#{xm},</if>
|
|
|
<if test="collectorName != null">#{collectorName},</if>
|
|
|
+ <if test="cjqxqh != null">#{cjqxqh},</if>
|
|
|
<if test="cjssxq != null">#{cjssxq},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
sysdate()
|
|
@@ -294,7 +319,7 @@
|
|
|
<select id="selectById" parameterType="String" resultType="int">
|
|
|
select count(1)
|
|
|
from accounting_data
|
|
|
- where id = #{id}
|
|
|
+ where zjhm = #{zjhm} and cjsj = #{cjsj}
|
|
|
</select>
|
|
|
|
|
|
<select id="getExportHj" resultMap="AccountingDataResult">
|
|
@@ -578,5 +603,10 @@
|
|
|
AND sfzhm = #{zjhm}
|
|
|
limit 1
|
|
|
</select>
|
|
|
+ <select id="detailedJcd" resultMap="AccountingDataResult">
|
|
|
+ <include refid="selectAccountingDataVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
</mapper>
|