Commit d9e10af4 authored by hongguangwu's avatar hongguangwu

1.7.19-税友相关

parent 45da142f
...@@ -233,6 +233,22 @@ public class TDispatchInfoController { ...@@ -233,6 +233,22 @@ public class TDispatchInfoController {
return new R<>(tDispatchInfoService.getTSocialSoldierHandlePage(page,tDispatchInfo)); return new R<>(tDispatchInfoService.getTSocialSoldierHandlePage(page,tDispatchInfo));
} }
/**
* @Description: 获取税友自动化办理推送的条数,限制【社保办理权限】菜单的办理人权限
* @Author: hgw
* @Date: 2026-01-21 09点16分
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<com.baomidou.mybatisplus.core.metadata.IPage < com.yifu.cloud.plus.v1.yifu.social.entity.TDispatchInfo>>
**/
@Operation(description = "获取税友自动化办理推送的条数,限制【社保办理权限】菜单的办理人权限")
@GetMapping("/countSocialFriendByAuth")
public R<Long> countSocialFriendByAuth() {
YifuUser user = SecurityUtils.getUser();
if (user == null || Common.isEmpty(user.getId())) {
return R.failed("请登录!");
}
return new R<>(tDispatchInfoService.countSocialFriendByAuth(user.getId()));
}
/** /**
* @Description: 简单分页查询--自动化办理查询 * @Description: 简单分页查询--自动化办理查询
* @Author: hgw * @Author: hgw
......
...@@ -84,7 +84,7 @@ public class TSocialFriendController { ...@@ -84,7 +84,7 @@ public class TSocialFriendController {
@SysLog("1定时任务推送税友") @SysLog("1定时任务推送税友")
@Inner @Inner
public R<String> doPushFriendTest() { public R<String> doPushFriendTest() {
return tSocialFriendPushService.pushFriend(null, CommonConstants.ONE_INT); return tSocialFriendPushService.pushFriend(null, null, CommonConstants.ONE_INT);
} }
@Operation(description = "2定时任务获取税友") @Operation(description = "2定时任务获取税友")
...@@ -147,7 +147,7 @@ public class TSocialFriendController { ...@@ -147,7 +147,7 @@ public class TSocialFriendController {
if (type == CommonConstants.ONE_INT) { if (type == CommonConstants.ONE_INT) {
// isAuto 参数:是否自动,自动要查户配置。手动可推送养工失。 手动的都推送(大部分都是推送,芜湖要先推送医保办理成功后才推送社保) // isAuto 参数:是否自动,自动要查户配置。手动可推送养工失。 手动的都推送(大部分都是推送,芜湖要先推送医保办理成功后才推送社保)
//doJointFriendTask.pushFriendByAsync() //doJointFriendTask.pushFriendByAsync()
tSocialFriendPushService.pushFriend(dispatchIdList, CommonConstants.ZERO_INT); tSocialFriendPushService.pushFriend(null, dispatchIdList, CommonConstants.ZERO_INT);
} else { } else {
//doJointFriendTask.getInfoByRequestIdByAsync() //doJointFriendTask.getInfoByRequestIdByAsync()
tSocialFriendService.getInfoByRequestId(); tSocialFriendService.getInfoByRequestId();
......
...@@ -125,6 +125,12 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> { ...@@ -125,6 +125,12 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
IPage<TSocialSoldierPageVo> getTSocialSoldierHandlePage(Page<TSocialSoldierPageVo> page, IPage<TSocialSoldierPageVo> getTSocialSoldierHandlePage(Page<TSocialSoldierPageVo> page,
@Param("tDispatchInfo") SocialHandleSearchVo tDispatchInfo, @Param("tDispatchInfo") SocialHandleSearchVo tDispatchInfo,
@Param("idsStr") List<String> idsStr); @Param("idsStr") List<String> idsStr);
/**
* @Description: 获取税友自动化办理推送的条数,限制【社保办理权限】菜单的办理人权限
* @Author: hgw
* @Date: 2026/1/21
**/
Long countSocialFriendByAuth(@Param("userId") String userId);
/** /**
* @Description: 社保士兵列表查询 * @Description: 社保士兵列表查询
......
...@@ -39,7 +39,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> { ...@@ -39,7 +39,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> {
* @Author hgw * @Author hgw
* @Date 2024-5-10 21:16:41 * @Date 2024-5-10 21:16:41
**/ **/
List<SociaFriendYgsAddVo> getSocialSoldierYgsAddVoList(@Param("idsStr") List<String> idsStr, @Param("isAuto") Integer isAuto); List<SociaFriendYgsAddVo> getSocialSoldierYgsAddVoList(@Param("idsStr") List<String> idsStr, @Param("pushIdsStr") List<String> pushIdsStr, @Param("isAuto") Integer isAuto);
/** /**
* 社保士兵养工失减少模板 * 社保士兵养工失减少模板
...@@ -47,7 +47,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> { ...@@ -47,7 +47,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> {
* @Author hgw * @Author hgw
* @Date 2024-5-10 21:16:41 * @Date 2024-5-10 21:16:41
**/ **/
List<SociaFriendYgsAddVo> getSocialSoldierYgsReduceVoList(@Param("idsStr") List<String> idsStr, @Param("isAuto") Integer isAuto); List<SociaFriendYgsAddVo> getSocialSoldierYgsReduceVoList(@Param("idsStr") List<String> idsStr, @Param("pushIdsStr") List<String> pushIdsStr, @Param("isAuto") Integer isAuto);
/** /**
* 社保士兵医生大增加模板 * 社保士兵医生大增加模板
...@@ -55,7 +55,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> { ...@@ -55,7 +55,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> {
* @Author hgw * @Author hgw
* @Date 2024-5-10 21:16:41 * @Date 2024-5-10 21:16:41
**/ **/
List<SociaFriendYgsAddVo> getSocialSoldierYsdAddVoList(@Param("idsStr") List<String> idsStr); List<SociaFriendYgsAddVo> getSocialSoldierYsdAddVoList(@Param("idsStr") List<String> idsStr, @Param("pushIdsStr") List<String> pushIdsStr, @Param("isAuto") Integer isAuto);
/** /**
* 社保士兵医生大减少模板 * 社保士兵医生大减少模板
...@@ -63,7 +63,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> { ...@@ -63,7 +63,7 @@ public interface TSocialFriendMapper extends BaseMapper<TSocialInfo> {
* @Author hgw * @Author hgw
* @Date 2024-5-10 21:16:41 * @Date 2024-5-10 21:16:41
**/ **/
List<SociaFriendYgsAddVo> getSocialSoldierYsdReduceVoList(@Param("idsStr") List<String> idsStr); List<SociaFriendYgsAddVo> getSocialSoldierYsdReduceVoList(@Param("idsStr") List<String> idsStr, @Param("pushIdsStr") List<String> pushIdsStr, @Param("isAuto") Integer isAuto);
......
...@@ -120,6 +120,12 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> { ...@@ -120,6 +120,12 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
**/ **/
IPage<TSocialSoldierPageVo> getTSocialSoldierHandlePage(Page<TSocialSoldierPageVo> page, SocialHandleSearchVo tDispatchInfo); IPage<TSocialSoldierPageVo> getTSocialSoldierHandlePage(Page<TSocialSoldierPageVo> page, SocialHandleSearchVo tDispatchInfo);
/**
* 获取税友自动化办理推送的条数,限制【社保办理权限】菜单的办理人权限
* @param userId
*/
Long countSocialFriendByAuth(String userId);
/** /**
* @param page * @param page
* @param tDispatchInfo * @param tDispatchInfo
......
...@@ -41,7 +41,7 @@ public interface TSocialFriendPushService extends IService<TSocialInfo> { ...@@ -41,7 +41,7 @@ public interface TSocialFriendPushService extends IService<TSocialInfo> {
* @Date: 2024/5/10 17:52 * @Date: 2024/5/10 17:52
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String> * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/ **/
R<String> pushFriend(List<String> dispatchIdList, Integer isAuto); R<String> pushFriend(List<String> dispatchIdList, List<String> pushDispatchIdList, Integer isAuto);
R<String> doExportRoster(String socialId, String type, String unitCreditCode, List<SociaFriendYgsAddVo> listVo); R<String> doExportRoster(String socialId, String type, String unitCreditCode, List<SociaFriendYgsAddVo> listVo);
......
...@@ -6208,6 +6208,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -6208,6 +6208,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return baseMapper.getTSocialSoldierHandlePage(page, tDispatchInfo, null); return baseMapper.getTSocialSoldierHandlePage(page, tDispatchInfo, null);
} }
/**
* 获取税友自动化办理推送的条数,限制【社保办理权限】菜单的办理人权限
* @param userId
*/
@Override
public Long countSocialFriendByAuth(String userId) {
return baseMapper.countSocialFriendByAuth(userId);
}
@Override @Override
public IPage<TSocialSoldierPageVo> getPageSocialSoldierAll(Page<TSocialSoldierPageVo> page, SocialHandleSearchVo tDispatchInfo) { public IPage<TSocialSoldierPageVo> getPageSocialSoldierAll(Page<TSocialSoldierPageVo> page, SocialHandleSearchVo tDispatchInfo) {
return baseMapper.getPageSocialSoldierAll(page, tDispatchInfo, null); return baseMapper.getPageSocialSoldierAll(page, tDispatchInfo, null);
......
...@@ -107,13 +107,15 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe ...@@ -107,13 +107,15 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
/** /**
* @param isAuto 1是,0否。是否自动推送的,自动要查户配置。手动可推送养工失。 * @param isAuto 1是,0否。是否自动推送的,自动要查户配置。手动可推送养工失。
* 手动的都推送(大部分都是推送,芜湖要先推送医保办理成功后才推送社保) * 手动的都推送(大部分都是推送,芜湖要先推送医保办理成功后才推送社保)
* @param dispatchIdList 审核后推送的派单ID
* @param pushDispatchIdList 手动推送的派单ID(这里不限制单个推送类型的)
* @Description: 推送到税友 * @Description: 推送到税友
* @Author: hgw * @Author: hgw
* @Date: 2024-12-12 10:03:59 * @Date: 2024-12-12 10:03:59
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String> * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.String>
**/ **/
@Override @Override
public R<String> pushFriend(List<String> dispatchIdList, Integer isAuto) { public R<String> pushFriend(List<String> dispatchIdList, List<String> pushDispatchIdList, Integer isAuto) {
if (atomicPushFriend.incrementAndGet() <= 1) { if (atomicPushFriend.incrementAndGet() <= 1) {
try { try {
TSocialFreindSet set = tSocialFreindSetService.getById("1"); TSocialFreindSet set = tSocialFreindSetService.getById("1");
...@@ -153,29 +155,27 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe ...@@ -153,29 +155,27 @@ public class TSocialFriendPushServiceImpl extends ServiceImpl<TSocialFriendMappe
if (Common.isNotNull(templateSrc)) { if (Common.isNotNull(templateSrc)) {
templateUrl = ossUtil.getObjectUrl(null, templateSrc); templateUrl = ossUtil.getObjectUrl(null, templateSrc);
} }
// TODO- 缺少手动推送,判断是勾选的还是查权限内的
// TODO- 缺少手动推送查权限内的接口
// 社保增员、社保减员、医保增员、医保减员 // 社保增员、社保减员、医保增员、医保减员
// 养工失新增列表 // 养工失新增列表
List<SociaFriendYgsAddVo> ygsAddlist = baseMapper.getSocialSoldierYgsAddVoList(dispatchIdList, isAuto); List<SociaFriendYgsAddVo> ygsAddlist = baseMapper.getSocialSoldierYgsAddVoList(dispatchIdList, pushDispatchIdList, isAuto);
if (ygsAddlist != null && !ygsAddlist.isEmpty()) { if (ygsAddlist != null && !ygsAddlist.isEmpty()) {
this.doPushSocialAndLogYgs(socialSetMap, ygsAddlist, 1, reduceYgsMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap); this.doPushSocialAndLogYgs(socialSetMap, ygsAddlist, 1, reduceYgsMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap);
} }
// 养工失减少列表 // 养工失减少列表
List<SociaFriendYgsAddVo> ygsReducelist = baseMapper.getSocialSoldierYgsReduceVoList(dispatchIdList, isAuto); List<SociaFriendYgsAddVo> ygsReducelist = baseMapper.getSocialSoldierYgsReduceVoList(dispatchIdList, pushDispatchIdList, isAuto);
if (ygsReducelist != null && !ygsReducelist.isEmpty()) { if (ygsReducelist != null && !ygsReducelist.isEmpty()) {
this.doPushSocialAndLogYgs(socialSetMap, ygsReducelist, 2, reduceYgsMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap); this.doPushSocialAndLogYgs(socialSetMap, ygsReducelist, 2, reduceYgsMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap);
} }
// 医生大新增列表 // 医生大新增列表
List<SociaFriendYgsAddVo> ysdAddlist = baseMapper.getSocialSoldierYsdAddVoList(dispatchIdList); List<SociaFriendYgsAddVo> ysdAddlist = baseMapper.getSocialSoldierYsdAddVoList(dispatchIdList,pushDispatchIdList, isAuto);
if (ysdAddlist != null && !ysdAddlist.isEmpty()) { if (ysdAddlist != null && !ysdAddlist.isEmpty()) {
this.doPushSocialAndLogYsd(socialSetMap, ysdAddlist, 3, reduceYsdMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap); this.doPushSocialAndLogYsd(socialSetMap, ysdAddlist, 3, reduceYsdMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap);
} }
// 医生大减少列表 // 医生大减少列表
List<SociaFriendYgsAddVo> ysdReducelist = baseMapper.getSocialSoldierYsdReduceVoList(dispatchIdList); List<SociaFriendYgsAddVo> ysdReducelist = baseMapper.getSocialSoldierYsdReduceVoList(dispatchIdList, pushDispatchIdList, isAuto);
if (ysdReducelist != null && !ysdReducelist.isEmpty()) { if (ysdReducelist != null && !ysdReducelist.isEmpty()) {
this.doPushSocialAndLogYsd(socialSetMap, ysdReducelist, 4, reduceYsdMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap); this.doPushSocialAndLogYsd(socialSetMap, ysdReducelist, 4, reduceYsdMap, zhangMap, templateUrl, templateSrcMap, reduceChiZhouMap);
} }
......
...@@ -270,7 +270,7 @@ public class DoSocialTask { ...@@ -270,7 +270,7 @@ public class DoSocialTask {
**/ **/
@Async @Async
public void pushFriend(List<String> dispatchIdList) { public void pushFriend(List<String> dispatchIdList) {
tSocialFriendPushService.pushFriend(dispatchIdList, CommonConstants.ONE_INT); tSocialFriendPushService.pushFriend(dispatchIdList, null, CommonConstants.ONE_INT);
} }
@Async @Async
......
...@@ -1720,6 +1720,34 @@ ...@@ -1720,6 +1720,34 @@
ORDER BY a.AUDIT_TIME DESC ORDER BY a.AUDIT_TIME DESC
</select> </select>
<!--获取税友自动化办理推送的条数,限制【社保办理权限】菜单的办理人权限-->
<select id="countSocialFriendByAuth" resultType="java.lang.Long">
SELECT
count(1)
FROM t_dispatch_info a
LEFT JOIN t_social_info s ON a.SOCIAL_ID = s.id
LEFT JOIN t_dispatch_social_fund_info h ON a.id = h.REDUCE_SOCIAL_FUND_ID
WHERE a.DELETE_FLAG = '0'
AND a.social_id is not null
and ((a.AUTO_FLAG = '0' and s.YGS_HANDLE_STATUS in ('0','1','3')) or (a.AUTO_FLAG_YSD = '0' and s.YGS_HANDLE_STATUS in ('0','1','3')))
AND NOT EXISTS (
SELECT 1
FROM t_dispatch_info d2
WHERE d2.SOCIAL_ID = a.SOCIAL_ID
AND d2.DELETE_FLAG = '0'
AND d2.social_id is not null
and (d2.AUTO_FLAG = '0' or d2.AUTO_FLAG_YSD = '0')
AND d2.CREATE_TIME > a.CREATE_TIME
)
AND a.STATUS = "2"
and a.SOCIAL_PROVINCE = '12'
and (( a.type = '0' AND (s.HANDLE_STATUS = "0" or s.HANDLE_STATUS = "4") ) or ( a.type ='1' AND (if(ifnull(h.id,0) != '0',h.HANDLE_STATUS,s.HANDLE_STATUS) in ('1','5','6','3','7') or (s.HANDLE_STATUS in ('1','5','6','3','7') and s.REDUCE_CAN = '1')) ))
and a.SOCIAL_HANDLE_STATUS in ('0','4')
and DATE_FORMAT(a.AUDIT_TIME,'%Y%m') = DATE_FORMAT(now(),'%Y%m')
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</select>
<!-- hgw 2025-4-25 18:09:12 自动化办理查询——派单维度 --> <!-- hgw 2025-4-25 18:09:12 自动化办理查询——派单维度 -->
<select id="getPageSocialSoldierAll" resultMap="socialSoldierPageMap"> <select id="getPageSocialSoldierAll" resultMap="socialSoldierPageMap">
SELECT SELECT
......
...@@ -148,6 +148,12 @@ ...@@ -148,6 +148,12 @@
/*自动推送时,查开关关闭,或者医保完成后才推送社保*/ /*自动推送时,查开关关闭,或者医保完成后才推送社保*/
and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6') and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6')
</if> </if>
<if test="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG = '0' and a.AUTO_FLAG = '0'
and a.type = '0' and s.YGS_HANDLE_STATUS in ('0','1','3') and a.type = '0' and s.YGS_HANDLE_STATUS in ('0','1','3')
and ( and (
...@@ -168,6 +174,12 @@ ...@@ -168,6 +174,12 @@
#{items} #{items}
</foreach> </foreach>
</if> </if>
<if test="pushIdsStr != null and pushIdsStr.size > 0">
AND a.ID in
<foreach item="items" index="index" collection="pushIdsStr" open="(" separator="," close=")">
#{items}
</foreach>
</if>
/** 社保办理状态:0待办理/1已办理2办理失败3已派减4 办理中 5 部分办理失败 派单社保办理状态 0 未办理 1 全部办理成功(原-已办理) 2 全部办理失败(原-办理失败) 3 部分办理成功 4 办理中 **/ /** 社保办理状态:0待办理/1已办理2办理失败3已派减4 办理中 5 部分办理失败 派单社保办理状态 0 未办理 1 全部办理成功(原-已办理) 2 全部办理失败(原-办理失败) 3 部分办理成功 4 办理中 **/
/*社保代办理 1.派单审核通过 2.派增(type=0):待办理(social_handle_status='0') or 派减(type=1):已办理完成或部分办理失败 且已派减*/ /*社保代办理 1.派单审核通过 2.派增(type=0):待办理(social_handle_status='0') or 派减(type=1):已办理完成或部分办理失败 且已派减*/
AND a.social_id is not null AND a.social_id is not null
...@@ -195,6 +207,16 @@ ...@@ -195,6 +207,16 @@
/*派单推的,有ID,则查单个推送的,立即推*/ /*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE = '1' and a.IS_SINGLE = '1'
</if> </if>
<if test="isAuto != null and isAuto == 1">
/*自动推送时,查开关关闭,或者医保完成后才推送社保*/
and (shh.IS_YSD_OK_PUSH_YGS = '0' or s.YSD_HANDLE_STATUS = '6')
</if>
<if test="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG = '0' and a.AUTO_FLAG = '0'
and a.type = '1' and s.YGS_HANDLE_STATUS in ('0','1','3') and a.type = '1' and s.YGS_HANDLE_STATUS in ('0','1','3')
and ( and (
...@@ -227,6 +249,10 @@ ...@@ -227,6 +249,10 @@
/*派单推的,有ID,则查单个推送的,立即推*/ /*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE_YSD = '1' and a.IS_SINGLE_YSD = '1'
</if> </if>
<if test="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG_YSD = '0' and a.AUTO_FLAG_YSD = '0'
and a.type = '0' and s.YSD_HANDLE_STATUS in ('0','1','3') and a.type = '0' and s.YSD_HANDLE_STATUS in ('0','1','3')
and ( and (
...@@ -335,6 +361,11 @@ ...@@ -335,6 +361,11 @@
/*派单推的,有ID,则查单个推送的,立即推*/ /*派单推的,有ID,则查单个推送的,立即推*/
and a.IS_SINGLE_YSD = '1' and a.IS_SINGLE_YSD = '1'
</if> </if>
<if test="isAuto != null and isAuto == 0 and (pushIdsStr == null or pushIdsStr.size == 0) ">
/* 以社保办理权限推送税友,查数量 */
and a.SOCIAL_HOUSEHOLD_NAME in (select SOCIAL_HOUSEHOLD from t_socialfund_house_res where user_id=#{userId} AND STATUS = '0' AND AUTH_TYPE = '1' and HOUSE_NAME_TYPE='0' )
</if>
and a.AUTO_FLAG_YSD = '0' and a.AUTO_FLAG_YSD = '0'
and a.type = '1' and s.YSD_HANDLE_STATUS in ('0','1','3') and a.type = '1' and s.YSD_HANDLE_STATUS in ('0','1','3')
and ( and (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment