修改bug

This commit is contained in:
yangjun 2026-02-05 14:16:38 +08:00
parent 59e6c3ab23
commit 54efe79f7e
2 changed files with 3 additions and 2 deletions

View File

@ -38,9 +38,9 @@
,s.`status` as suppliers_status ,s.`status` as suppliers_status
,s.audit_content ,s.audit_content
from sys_depart d from sys_depart d
left join nu_org_apply_info o on d.id = o.pk_id left join nu_org_apply_info o on d.id = o.pk_id and o.`status` = '2'
left join nu_biz_suppliers_org s on d.org_code = s.org_code left join nu_biz_suppliers_org s on d.org_code = s.org_code
where 1=1 and o.status in ('2','4','5') and d.del_flag = '0' and s.iz_history = 'N' where 1=1 and d.del_flag = '0' and s.iz_history = 'N'
and s.open_id = #{openId} and s.open_id = #{openId}
<if test="orgCode != null and orgCode != ''"> <if test="orgCode != null and orgCode != ''">
and d.org_code IN and d.org_code IN

View File

@ -228,6 +228,7 @@ public class NuBizSuppliersApplyServiceImpl extends ServiceImpl<NuBizSuppliersAp
public SuppliersApplyEntity getSupInfoByOpenId(String openId, String orgCode) { public SuppliersApplyEntity getSupInfoByOpenId(String openId, String orgCode) {
QueryWrapper<NuBizSuppliersApply> queryWrapper = new QueryWrapper<>(); QueryWrapper<NuBizSuppliersApply> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("open_id", openId); queryWrapper.eq("open_id", openId);
queryWrapper.orderByDesc("create_time");
List<NuBizSuppliersApply> list = baseMapper.selectList(queryWrapper); List<NuBizSuppliersApply> list = baseMapper.selectList(queryWrapper);
if (list.size() > 0) { if (list.size() > 0) {
SuppliersApplyEntity suppliersApplyEntity = new SuppliersApplyEntity(); SuppliersApplyEntity suppliersApplyEntity = new SuppliersApplyEntity();