| | |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2089995177814495234 |
| | | AND c.sign_date >= CURDATE() |
| | | AND (comp_id = 2089995177814495234 or comp_id = 2089996921978040321 or comp_id = 2089997578009128962 or comp_id = 2101966257365045249) |
| | | AND c.sign_date >= CURDATE() |
| | | AND c.sign_date < DATE_ADD( CURDATE(), INTERVAL 1 DAY )) smjbr, |
| | | ( |
| | | SELECT |
| | |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2089995177814495234 |
| | | AND c.sign_date >=DATE_FORMAT( CURDATE(), '%Y-%m-01' ) |
| | | AND (comp_id = 2089995177814495234 or comp_id = 2089996921978040321 or comp_id = 2089997578009128962 or comp_id = 2101966257365045249) |
| | | AND c.sign_date >=DATE_FORMAT( CURDATE(), '%Y-%m-01' ) |
| | | AND c.sign_date < DATE_FORMAT( DATE_ADD( CURDATE(), INTERVAL 1 MONTH ), '%Y-%m-01' )) smjby, |
| | | ( |
| | | SELECT |
| | |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2089995177814495234 |
| | | AND (comp_id = 2089995177814495234 or comp_id = 2089996921978040321 or comp_id = 2089997578009128962 or comp_id = 2101966257365045249) |
| | | AND c.sign_date >=DATE_FORMAT( CURDATE(), '%Y-01-01' ) |
| | | AND c.sign_date < DATE_FORMAT( DATE_ADD( CURDATE(), INTERVAL 1 YEAR ), '%Y-01-01' )) smjbn, |
| | | ( |
| | |
| | | ORDER BY |
| | | c.create_time DESC |
| | | </select> |
| | | <select id="homeZbjtYearAndMon" resultType="com.by4cloud.platformx.business.vo.HomeZbjtVo"> |
| | | SELECT |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556196124250113 |
| | | AND c.sign_date >= #{startMon} |
| | | AND c.sign_date < #{endMon}) sgbby, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556196124250113 |
| | | AND c.sign_date >= #{startYear} |
| | | AND c.sign_date < #{endYear}) sgbbn, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND (comp_id = 2089995177814495234 or comp_id = 2089996921978040321 or comp_id = 2089997578009128962 or comp_id = 2101966257365045249) |
| | | AND c.sign_date >= #{startMon} |
| | | AND c.sign_date < #{endMon}) smjby, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND (comp_id = 2089995177814495234 or comp_id = 2089996921978040321 or comp_id = 2089997578009128962 or comp_id = 2101966257365045249) |
| | | AND c.sign_date >= #{startYear} |
| | | AND c.sign_date < #{endYear}) smjbn, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556317461270529 |
| | | AND c.sign_date >= #{startMon} |
| | | AND c.sign_date < #{endMon}) jxcby, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556317461270529 |
| | | AND c.sign_date >= #{startYear} |
| | | AND c.sign_date < #{endYear}) jxcbn, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556421857497090 |
| | | AND c.sign_date >= #{startMon} |
| | | AND c.sign_date < #{endMon}) tfby, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556421857497090 |
| | | AND c.sign_date >= #{startYear} |
| | | AND c.sign_date < #{endYear}) tfbn, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556535640576002 |
| | | AND c.sign_date >= #{startMon} |
| | | AND c.sign_date < #{endMon}) ymjby, |
| | | ( |
| | | SELECT |
| | | IFNULL(sum( c.amount ),0) |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND comp_id = 2056556535640576002 |
| | | AND c.sign_date >= #{startYear} |
| | | AND c.sign_date < #{endYear}) ymjbn |
| | | </select> |
| | | <select id="pjsxywwcqkHT" resultType="com.by4cloud.platformx.business.vo.GcpbkwcqkItemVo"> |
| | | SELECT |
| | | '配件' yw, |
| | | '新增合同' lb, |
| | | '石煤机' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND ( c.comp_id = 2089995177814495234 OR c.comp_id = 2089996921978040321 OR c.comp_id = 2089997578009128962 OR c.comp_id = 2101966257365045249 ) UNION ALL |
| | | SELECT |
| | | '配件' yw, |
| | | '新增合同' lb, |
| | | '石工泵' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556196124250113 UNION ALL |
| | | SELECT |
| | | '配件' yw, |
| | | '新增合同' lb, |
| | | '邢台厂' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556317461270529 UNION ALL |
| | | SELECT |
| | | '配件' yw, |
| | | '新增合同' lb, |
| | | '通方厂' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556421857497090 |
| | | </select> |
| | | <select id="cksxywwcqkHT" resultType="com.by4cloud.platformx.business.vo.GcpbkwcqkItemVo"> |
| | | SELECT |
| | | '出口' yw, |
| | | '新增合同' lb, |
| | | '石煤机' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | left join business_customer bc on bc.id=c.party_a_id and bc.export_service_attr=#{type} |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND ( c.comp_id = 2089995177814495234 OR c.comp_id = 2089996921978040321 OR c.comp_id = 2089997578009128962 OR c.comp_id = 2101966257365045249 ) UNION ALL |
| | | SELECT |
| | | '出口' yw, |
| | | '新增合同' lb, |
| | | '石工泵' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | left join business_customer bc on bc.id=c.party_a_id and bc.export_service_attr=#{type} |
| | | |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556196124250113 UNION ALL |
| | | SELECT |
| | | '出口' yw, |
| | | '新增合同' lb, |
| | | '邢台厂' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | left join business_customer bc on bc.id=c.party_a_id and bc.export_service_attr=#{type} |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556317461270529 UNION ALL |
| | | SELECT |
| | | '出口' yw, |
| | | '新增合同' lb, |
| | | '通方厂' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | left join business_customer bc on bc.id=c.party_a_id and bc.export_service_attr=#{type} |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556421857497090 |
| | | </select> |
| | | <select id="dxsxywwcqkHT" resultType="com.by4cloud.platformx.business.vo.GcpbkwcqkItemVo"> |
| | | SELECT |
| | | '大修' yw, |
| | | '新增合同' lb, |
| | | '石煤机' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND ( c.comp_id = 2089995177814495234 OR c.comp_id = 2089996921978040321 OR c.comp_id = 2089997578009128962 OR c.comp_id = 2101966257365045249 ) UNION ALL |
| | | SELECT |
| | | '大修' yw, |
| | | '新增合同' lb, |
| | | '石工泵' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556196124250113 UNION ALL |
| | | SELECT |
| | | '大修' yw, |
| | | '新增合同' lb, |
| | | '邢台厂' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556317461270529 UNION ALL |
| | | SELECT |
| | | '大修' yw, |
| | | '新增合同' lb, |
| | | '通方厂' dw, |
| | | IFNULL( sum( amount ), 0 ) wc |
| | | FROM |
| | | contract c |
| | | WHERE |
| | | c.del_flag = '0' |
| | | AND c.supply_attribute = #{type} |
| | | AND c.sign_date >= #{monstart} |
| | | AND c.sign_date <= #{monend} |
| | | AND c.comp_id = 2056556421857497090 |
| | | </select> |
| | | </mapper> |