Forráskód Böngészése

用户服务商sql修改

LiFei 3 éve
szülő
commit
34cf40b9db

+ 1 - 1
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwsubcontractor/mapper/xml/HlwSubcontractorMapper.xml

@@ -175,7 +175,7 @@
         FROM hlw_subcontractor a
         inner join hlw_application_subcontractor has on has.subcontractor_id=a.id
         left join hlw_user hu on  hu.user_code=#{userCode}
-        left join hlw_user_subcontractor hs on hs.subcontractor_id=a.id and hu.id=hs.user_id and (to_days(now()) between to_days(hs.start_date) and to_days(hs.end_date))
+        inner join hlw_user_subcontractor hs on hs.subcontractor_id=a.id and hu.id=hs.user_id and (to_days(now()) between to_days(hs.start_date) and to_days(hs.end_date))
         left join hlw_payment hp on hp.subcontractor_id=a.id and hp.application_id = #{applicationId} and hp.status=3
         left join hlw_payment_detail hpd on hpd.idcard_number=hu.idcard_number and hp.id=hpd.payment_id and hpd.status=3
         WHERE has.application_id = #{applicationId}