RepairMxDownloadMapper.xml 1.6 KB

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.zfire.jiasm.syncdata.dao.mapper.RepairMxDownloadMapper">
  4. <select id="getMx" parameterType="com.zfire.jiasm.syncdata.parameter.OrderPar" resultType="com.zfire.jiasm.syncdata.plus.entity.OrderProduct">
  5. select a.pgmxid,a.jxno as province_id,a.jxmc as product_name,a.njtm as inside_code,a.wjtm as out_code,
  6. a.fee as price,a.shul as num,a.wwsl as undone_num,a.created_by,a.created_date as create_time,
  7. a.last_modified_by as update_by,a.last_modified_date as update_time,a.gzxx as fault_reason,
  8. b.websit_id as sale_websit,a.xsdwdh as sale_websit_mobile,
  9. c.websit_id as service_websit,a.fwdwdh as service_websit_mobile, a.gmsj as buy_time,a.beiz as remark
  10. from itf_tbl_assign_mx_download a
  11. left join websit b on b.websit_id in
  12. (select websit_id from customer_information_websit
  13. where ref_websit_id in
  14. (select xsdw from itf_tbl_assign_mx_download where syn_req_id = #{request.synReqId}))
  15. left join websit c on c.websit_id in
  16. (select websit_id from customer_information_websit
  17. where ref_websit_id in
  18. (select fwdw from itf_tbl_assign_mx_download where syn_req_id = #{request.synReqId}))
  19. where syn_req_id = #{request.synReqId}
  20. </select>
  21. </mapper>