Merge remote-tracking branch 'origin/main'
commit
e37a2d5c16
|
|
@ -66,6 +66,8 @@ public class CorpInfoQry {
|
|||
@ApiModelProperty(value = "企业类型1:监管 2:企业 3:相关方", name = "enterpriseType", required = true)
|
||||
private Integer enterpriseType;
|
||||
|
||||
@ApiModelProperty(value = "企业类型1:监管 2:企业 3:相关方", name = "enterpriseTypeList", required = true)
|
||||
private List<Integer> enterpriseTypeList;
|
||||
@ApiModelProperty(value = "统一社会信用代码", name = "code", required = true)
|
||||
private String eqCode;
|
||||
|
||||
|
|
|
|||
|
|
@ -136,6 +136,16 @@ public class CorpInfoRepositoryImpl extends BaseRepositoryImpl<CorpInfoMapper, C
|
|||
if (CollUtil.isNotEmpty(enterpriseType)) {
|
||||
queryWrapper.in("type", enterpriseType);
|
||||
}
|
||||
if (params.get("enterpriseTypeList") != null
|
||||
&& params.get("enterpriseTypeList") instanceof List){
|
||||
List<Integer> enterpriseTypeList = (List<Integer>) params.get("enterpriseTypeList");
|
||||
if (enterpriseTypeList != null && enterpriseTypeList.size() > 0){
|
||||
List<Integer> entTypeList = CorpTypeEnum.getCodesByEnterpriseType(enterpriseTypeList);
|
||||
if (CollUtil.isNotEmpty(entTypeList)) {
|
||||
queryWrapper.in("type", entTypeList);
|
||||
}
|
||||
}
|
||||
}
|
||||
queryWrapper.orderByAsc("corp_order").orderByDesc("create_time");
|
||||
return corpInfoMapper.selectList(queryWrapper);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -311,6 +311,7 @@
|
|||
u.political_affiliation_name,
|
||||
u.employment_flag,
|
||||
u.flow_flag,
|
||||
u.rz_flag,
|
||||
CASE
|
||||
WHEN LENGTH(FROM_BASE64(u.user_id_card)) > 0
|
||||
AND MOD(SUBSTRING(FROM_BASE64(u.user_id_card), 17, 1), 2) = 1 THEN
|
||||
|
|
@ -389,6 +390,7 @@
|
|||
u.political_affiliation_name,
|
||||
u.employment_flag,
|
||||
u.flow_flag,
|
||||
u.rz_flag,
|
||||
CASE
|
||||
WHEN LENGTH(FROM_BASE64(u.user_id_card)) > 0
|
||||
AND MOD(SUBSTRING(FROM_BASE64(u.user_id_card), 17, 1), 2) = 1 THEN
|
||||
|
|
|
|||
Loading…
Reference in New Issue