|
@@ -220,4 +220,43 @@
|
|
|
and licenseno = #{licenseNo, jdbcType=VARCHAR}
|
|
and licenseno = #{licenseNo, jdbcType=VARCHAR}
|
|
|
and createtime > DATE_SUB(CURDATE(), INTERVAL 6 MONTH)
|
|
and createtime > DATE_SUB(CURDATE(), INTERVAL 6 MONTH)
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectByOrderQueryVo" resultType="com.ydtech.modules.order.entity.InsOrders" parameterType="com.ydtech.modules.order.entity.vo.OrderQueryVo">
|
|
|
|
|
+ select * from ins_orders o
|
|
|
|
|
+
|
|
|
|
|
+ <if test="companyId != null and companyId != ''">
|
|
|
|
|
+ left join ins_area_company iac on iac.orderno = o.orderno
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="orderNo != null and orderNo != ''">
|
|
|
|
|
+ and o.orderno = #{orderNo, jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
|
|
+ and o.deptid like CONCAT(#{deptId, jdbcType=VARCHAR}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="deptId == null and deptId == '' and userId != null and userId != ''">
|
|
|
|
|
+ and o.userid = #{userId, jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="orderStatus != null and orderStatus != ''">
|
|
|
|
|
+ and o.orderstatus like CONCAT('%', #{orderStatus, jdbcType=VARCHAR}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="frameNo != null and frameNo != ''">
|
|
|
|
|
+ and o.frameno like CONCAT('%', #{frameNo, jdbcType=VARCHAR}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="licenseNo != null and licenseNo != ''">
|
|
|
|
|
+ and o.licenseno like CONCAT('%', #{licenseNo, jdbcType=VARCHAR}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="insuredName != null and insuredName != ''">
|
|
|
|
|
+ and o.insuredname like CONCAT('%', #{insuredName, jdbcType=VARCHAR}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="startDate != null and endDate != null">
|
|
|
|
|
+ and o.createtime between #{startDate, jdbcType=TIMESTAMP} and DATE_ADD(#{endDate, jdbcType=TIMESTAMP},
|
|
|
|
|
+ INTERVAL 1 DAY)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="companyId != null and companyId != ''">
|
|
|
|
|
+ and iac.company_id = #{companyId, jdbcType=VARCHAR}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|