Commit 34a29526 authored by hongguangwu's avatar hongguangwu

MVP1.6.6-社保士兵实缴——加个拦截

parent 259eeea5
...@@ -53,4 +53,6 @@ public interface TAutoPaymentDetailMapper extends BaseMapper<TAutoPaymentDetail> ...@@ -53,4 +53,6 @@ public interface TAutoPaymentDetailMapper extends BaseMapper<TAutoPaymentDetail>
List<TAutoPaymentDetail> getListByParentId(@Param("parentId") String parentId); List<TAutoPaymentDetail> getListByParentId(@Param("parentId") String parentId);
int getCountByParentId(@Param("parentId") String parentId);
} }
...@@ -68,4 +68,13 @@ public interface TAutoPaymentDetailService extends IService<TAutoPaymentDetail> ...@@ -68,4 +68,13 @@ public interface TAutoPaymentDetailService extends IService<TAutoPaymentDetail>
**/ **/
List<TAutoPaymentDetail> getListByParentId(String parentId); List<TAutoPaymentDetail> getListByParentId(String parentId);
/**
* @param parentId
* @Description: 获取被打标的条数,用作拦截重新办理
* @Author: hgw
* @Date: 2024/6/21 11:21
* @return: int
**/
int getCountByParentId(String parentId);
} }
...@@ -186,6 +186,10 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai ...@@ -186,6 +186,10 @@ public class TAutoPaymentDetailServiceImpl extends ServiceImpl<TAutoPaymentDetai
public List<TAutoPaymentDetail> getListByParentId(String parentId) { public List<TAutoPaymentDetail> getListByParentId(String parentId) {
return baseMapper.getListByParentId(parentId); return baseMapper.getListByParentId(parentId);
} }
@Override
public int getCountByParentId(String parentId) {
return baseMapper.getCountByParentId(parentId);
}
private Long noPageCountDiy(TAutoPaymentDetailSearchVo searchVo) { private Long noPageCountDiy(TAutoPaymentDetailSearchVo searchVo) {
LambdaQueryWrapper<TAutoPaymentDetail> wrapper = buildQueryWrapper(searchVo); LambdaQueryWrapper<TAutoPaymentDetail> wrapper = buildQueryWrapper(searchVo);
......
...@@ -61,6 +61,7 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap ...@@ -61,6 +61,7 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
private final TSocialSoldierShenBaoTaskService tSocialSoldierShenBaoTaskService; private final TSocialSoldierShenBaoTaskService tSocialSoldierShenBaoTaskService;
private final TAutoPaymentInfoService tAutoPaymentInfoService; private final TAutoPaymentInfoService tAutoPaymentInfoService;
private final TAutoPaymentErrorService tAutoPaymentErrorService; private final TAutoPaymentErrorService tAutoPaymentErrorService;
private final TAutoPaymentDetailService tAutoPaymentDetailService;
/** /**
* @param socialList * @param socialList
...@@ -430,6 +431,10 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap ...@@ -430,6 +431,10 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
// 先删除推送任务 // 先删除推送任务
int type = 3; int type = 3;
if (isReHandle) { if (isReHandle) {
int count = tAutoPaymentDetailService.getCountByParentId(parentId);
if (count == 0) {
return R.failed("请先标记!");
}
type = 7; type = 7;
List<TSocialSoldierShenBaoTask> taskList = tSocialSoldierShenBaoTaskService.getTSocialSoldierTaskListByRe(); List<TSocialSoldierShenBaoTask> taskList = tSocialSoldierShenBaoTaskService.getTSocialSoldierTaskListByRe();
boolean canReTask = false; boolean canReTask = false;
...@@ -451,6 +456,9 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap ...@@ -451,6 +456,9 @@ public class TSocialSoldierPushServiceImpl extends ServiceImpl<TSocialSoldierMap
} }
} }
} else { } else {
if (Common.isNotNull(parentId)) {
tAutoPaymentErrorService.deleteByParentId(parentId);
}
tSocialSoldierShenBaoTaskService.deleteByRePayment(); tSocialSoldierShenBaoTaskService.deleteByRePayment();
} }
} else { } else {
......
...@@ -163,4 +163,12 @@ ...@@ -163,4 +163,12 @@
order by a.SOURCE_TYPE,a.CERT_NUM order by a.SOURCE_TYPE,a.CERT_NUM
</select> </select>
<!--tAutoPaymentDetail简单分页查询-->
<select id="getCountByParentId" resultType="java.lang.Integer">
SELECT
count(1)
FROM t_auto_payment_detail a
where PARENT_ID = #{parentId} and REPEAT_HANDLE_FLAG = '0'
</select>
</mapper> </mapper>
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