generated from dxfeng/secondev-chapanda-feishu
feat(beisen): 法人公司数据转换
This commit is contained in:
parent
4847480781
commit
637d793951
|
|
@ -0,0 +1,16 @@
|
|||
package com.weaver.seconddev.beisen.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author:dxfeng
|
||||
* @createTime: 2025/07/30
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
public class LegalEntityCompany {
|
||||
private Long id;
|
||||
private String name;
|
||||
private String code;
|
||||
private String legalRepresentative;
|
||||
}
|
||||
|
|
@ -11,6 +11,7 @@ import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
|||
import com.weaver.seconddev.beisen.annotation.FieldConversion;
|
||||
import com.weaver.seconddev.beisen.entity.BeiSenOffer;
|
||||
import com.weaver.seconddev.beisen.entity.FieldConversionInfo;
|
||||
import com.weaver.seconddev.beisen.entity.LegalEntityCompany;
|
||||
import com.weaver.seconddev.beisen.mapper.OfferMapper;
|
||||
import com.weaver.seconddev.chapanda.beisen.constant.Constants;
|
||||
import com.weaver.seconddev.chapanda.beisen.util.Token2BeiSenUtil;
|
||||
|
|
@ -206,7 +207,10 @@ public class SyncBeiSenOfferCronJob implements EsbServerlessRpcRemoteInterface {
|
|||
String pOIdEmpReserve2 = getEmployeeIdByOId(baseParam, convertOffer.getPOIdEmpReserve2());
|
||||
mainDataObj.put("other_superior", pOIdEmpReserve2);
|
||||
|
||||
// TODO mainDataObj.put("frgs", convertOffer.getFirstPartyCode());
|
||||
LegalEntityCompany legalEntityCompany = offerMapper.getLegalEntityCompany(baseParam, convertOffer.getFirstParty());
|
||||
if(null!=legalEntityCompany) {
|
||||
mainDataObj.put("frgs", legalEntityCompany.getId());
|
||||
}
|
||||
mainDataObj.put("htzzrq", DateUtil.formatDate(convertOffer.getTerminateDate()));
|
||||
// TODO
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.weaver.seconddev.beisen.mapper;
|
||||
|
||||
import com.weaver.seconddev.beisen.entity.BeiSenOffer;
|
||||
import com.weaver.seconddev.beisen.entity.LegalEntityCompany;
|
||||
import com.weaver.seconddev.portal.entity.param.BaseParam;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
|
@ -23,4 +24,5 @@ public interface OfferMapper {
|
|||
|
||||
Long getOfferIdByObjectId(@Param("param") BaseParam param,@Param("objectId") String objectId);
|
||||
|
||||
LegalEntityCompany getLegalEntityCompany(@Param("param") BaseParam param,@Param("name") String name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,4 +43,11 @@
|
|||
where t1.delete_type = 0 and t1.tenant_key = #{param.tenantKey}
|
||||
and t1.bsid = #{objectId}
|
||||
</select>
|
||||
|
||||
<select id="getLegalEntityCompany" resultType="com.weaver.seconddev.beisen.entity.LegalEntityCompany">
|
||||
select t1.id, t1.mc as name, t1.bh as code, t1.fddbr as legalRepresentative
|
||||
from ${param.e10_common}.uf_legal_entity t1
|
||||
where t1.delete_type = 0 and t1.tenant_key = #{param.tenantKey}
|
||||
and t1.mc = #{name} limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue