jsk 邀请供应商及已报供应商数量问题修正
This commit is contained in:
parent
d6d44df438
commit
df10f63647
|
|
@ -108,12 +108,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</sql>
|
||||
|
||||
<select id="selectInquiryList" parameterType="com.bonus.canteen.core.ims.domain.Inquiry" resultMap="InquiryResult">
|
||||
select * from (
|
||||
select aa.inquiry_id, aa.area_id, aa.inquiry_code, aa.title, aa.start_time, aa.end_time, aa.status, aa.bid_time,
|
||||
aa.request_arrival_time, aa.inquiry_notes, aa.phone, aa.link_man, aa.address, aa.bid_total_price, aa.supplier_id,
|
||||
bb.area_name as area, aa.create_by, aa.create_time, aa.update_by, aa.update_time,case when cc.bid_status=3 then dd.supplier_name else '' end as supplier_name,
|
||||
GROUP_CONCAT(cc.inquiry_supplier_id ) as supplier_ids,
|
||||
GROUP_CONCAT(dd.supplier_name ) as supplier_names,
|
||||
sum(case when cc.bid_status=2 then 1 else 0 end) as inquirySupplierNum,
|
||||
sum(case when cc.inquiry_supplier_id is not null then 1 else 0 end) as inquirySupplierNum,
|
||||
sum(case when cc.bid_status=1 then 1 else 0 end) as supplierNum
|
||||
from ims_inquiry aa
|
||||
left join basic_area bb on aa.area_id=bb.area_id
|
||||
|
|
@ -135,9 +136,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="orderStatus != null and orderStatus != '' and orderStatus == '2'"> and aa.status != 1</if>
|
||||
<if test="startTime != null "> and aa.start_time >= #{startTime} </if>
|
||||
<if test="endTime != null "> and #{endTime}>=aa.start_time </if>
|
||||
|
||||
</where>
|
||||
group by aa.inquiry_id
|
||||
) aa order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectInquiryByInquiryId" parameterType="Long" resultMap="InquiryResult">
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</delete>
|
||||
|
||||
<select id="selectInquiryList" parameterType="com.bonus.canteen.core.ims.domain.Inquiry" resultMap="InquiryResult">
|
||||
select * from (
|
||||
select aa.inquiry_id, aa.area_id, aa.inquiry_code, aa.title, aa.start_time, aa.end_time, aa.status, aa.bid_time,
|
||||
aa.request_arrival_time, aa.inquiry_notes, aa.phone, aa.link_man, aa.address, aa.bid_total_price, aa.supplier_id,
|
||||
bb.area_name as area, aa.create_by, aa.create_time, aa.update_by, aa.update_time
|
||||
|
|
@ -229,5 +230,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
</where>
|
||||
group by aa.inquiry_id
|
||||
) aa order by create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue