医疗互助系统-医保报销数据导入-导入医保数据:系统用户身份证为空时使用会员台账身份证,最后才按姓名匹配。;
This commit is contained in:
@@ -111,11 +111,13 @@ public class SickHelpMedicalInsController {
|
|||||||
.filter(data -> data.getSxzf().compareTo(BigDecimal.valueOf(10000)) > 0)
|
.filter(data -> data.getSxzf().compareTo(BigDecimal.valueOf(10000)) > 0)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
// 系统用户身份证为空时使用会员台账身份证,最后才按姓名匹配。
|
||||||
Sql sql = Sqls.create("""
|
Sql sql = Sqls.create("""
|
||||||
SELECT
|
SELECT
|
||||||
t1.loginName,
|
t1.loginName,
|
||||||
t1.userName,
|
t1.userName,
|
||||||
t2.idcard AS idCard
|
COALESCE(NULLIF(TRIM(t2.idcard), ''),
|
||||||
|
NULLIF(TRIM(t1.idcard), '')) AS idCard
|
||||||
FROM
|
FROM
|
||||||
sick_fund_member t1
|
sick_fund_member t1
|
||||||
LEFT JOIN sys_user t2 ON t2.loginname = t1.loginName
|
LEFT JOIN sys_user t2 ON t2.loginname = t1.loginName
|
||||||
|
|||||||
Reference in New Issue
Block a user