修改接口

This commit is contained in:
yangjun 2025-12-23 10:45:08 +08:00
parent 8a6a743514
commit c60e797383
3 changed files with 19 additions and 0 deletions

View File

@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nu.entity.EmployeesAdvisoryInfoEntity;
import com.nu.entity.SuppliersApplyEntity;
import com.nu.entity.SuppliersOrgAllEntity;
import com.nu.entity.SuppliersOrgEntity;
import com.nu.modules.EmployessInfo.api.IEmployessAdvisioryInfoApi;
import com.nu.modules.bizSuppliers.entity.NuBizSuppliersApply;
import com.nu.modules.bizSuppliers.entity.NuBizSuppliersOrg;
import com.nu.modules.bizSuppliers.mapper.NuBizSuppliersApplyMapper;
@ -35,6 +37,9 @@ public class NuBizSuppliersApplyServiceImpl extends ServiceImpl<NuBizSuppliersAp
@Autowired
private NuBizSuppliersOrgMapper nuBizSuppliersOrgMapper;
@Autowired
private IEmployessAdvisioryInfoApi employessAdvisioryInfoApi;
@Override
public SuppliersApplyEntity addSuppliers(SuppliersApplyEntity suppliersApplyEntity) {
QueryWrapper<NuBizSuppliersApply> queryWrapper = new QueryWrapper<>();
@ -47,7 +52,17 @@ public class NuBizSuppliersApplyServiceImpl extends ServiceImpl<NuBizSuppliersAp
NuBizSuppliersApply nuBizSuppliersApply = new NuBizSuppliersApply();
BeanUtils.copyProperties(suppliersApplyEntity, nuBizSuppliersApply);
baseMapper.insert(nuBizSuppliersApply);
//修改此用户信息咨询表iz_jg标识为Y是机构
EmployeesAdvisoryInfoEntity edEntity = new EmployeesAdvisoryInfoEntity();
edEntity.setOpenId(suppliersApplyEntity.getOpenId());
edEntity.setIzGys("Y");
employessAdvisioryInfoApi.updateByOpenId(edEntity);
BeanUtils.copyProperties(nuBizSuppliersApply, suppliersApplyEntity);
return suppliersApplyEntity;
}

View File

@ -36,6 +36,9 @@
<if test="izJs != null and izJs != ''">
iz_js = #{izJs},
</if>
<if test="izGys != null and izGys != ''">
iz_gys = #{izGys},
</if>
</set>
where open_id = #{openId}
</update>

View File

@ -120,6 +120,7 @@ public class EmployeesAdvisoryInfoEntity implements Serializable {
private String izYg;
private String izJs;
private String izJg;
private String izGys;
private String orgCode;