|
@@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select sc.id, sc.company_name,sc.company_type,sc.detail_address,sc.longitude,sc.latitude,sc.legal_person,sc.contact_number,sc.establish_date,
|
|
|
sc.unified_social_credit_code,sc.business_license_url,sc.default_img_url,sc.propaganda_img_url,sc.company_introduce,sc.version_num,
|
|
|
sc.create_by,sc.update_by,sc.update_time,sc.remark,sc.status,sc.create_time,sc.primary_business,sc.sort
|
|
|
- ,(select count(0) from goods_info gi where gi.company_id = sc.id and gi.putaway_flag = '0' and del_flag='0') goodsCount
|
|
|
+ ,(select count(0) from goods_info gi where gi.company_id = sc.id and gi.putaway_flag = '1' and gi.del_flag='0') goodsCount
|
|
|
from sys_company sc
|
|
|
</sql>
|
|
|
|