|
@@ -552,7 +552,7 @@
|
|
LEFT JOIN tb_whole_testing_result_921 r ON s.id = r.id
|
|
LEFT JOIN tb_whole_testing_result_921 r ON s.id = r.id
|
|
LEFT JOIN tb_whole_collect_site_city c ON s.collect_site_code = c.id
|
|
LEFT JOIN tb_whole_collect_site_city c ON s.collect_site_code = c.id
|
|
LEFT JOIN tb_testing_site_921 t ON t.testing_site_code = r.testing_site_code
|
|
LEFT JOIN tb_testing_site_921 t ON t.testing_site_code = r.testing_site_code
|
|
- where s.collect_datetime > #{startTime} and #{endTime}>=s.collect_datetime
|
|
|
|
|
|
+ where s.create_datetime > #{startTime} and #{endTime}>=s.create_datetime
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -654,5 +654,18 @@
|
|
<include refid="selectAccountingDataVo"/>
|
|
<include refid="selectAccountingDataVo"/>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="selectRepeat" resultType="java.lang.Integer"
|
|
|
|
+ parameterType="com.boman.web.core.domain.vo.AccountingDataVo">
|
|
|
|
+ select count(1) from accounting_data
|
|
|
|
+ <where>
|
|
|
|
+ 1=1
|
|
|
|
+ <if test="zjhm != null and zjhm != ''">and zjhm = #{zjhm}</if>
|
|
|
|
+ <if test="xm != null and xm != ''">and xm = #{xm}</if>
|
|
|
|
+ <if test="lxdh != null and lxdh != ''">and lxdh = #{lxdh}</if>
|
|
|
|
+ <if test="cjsj != null and cjsj != '' and cjsj != 'null'">and
|
|
|
|
+ cjsj = #{cjsj}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|