Commit 1b376523 authored by fangxinjiang's avatar fangxinjiang

项目档案无岗位更新岗位fxj 2024-04-17

parent df405a2b
...@@ -205,9 +205,9 @@ public class SysHouseHoldInfoController { ...@@ -205,9 +205,9 @@ public class SysHouseHoldInfoController {
} }
houseHoldInfo = sysHouseHoldInfoService.getOne(wrapper); houseHoldInfo = sysHouseHoldInfoService.getOne(wrapper);
if (Common.isNotNull(houseHoldInfo) && CommonConstants.ZERO_STRING.equals(houseHoldInfo.getAutoStatus())){ if (Common.isNotNull(houseHoldInfo) && CommonConstants.ZERO_STRING.equals(houseHoldInfo.getAutoStatus())){
return R.ok(1); return R.ok(0);
} }
return R.ok(0); return R.ok(1);
} }
} }
...@@ -26,6 +26,7 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -26,6 +26,7 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 派单信息记录表 * 派单信息记录表
...@@ -249,4 +250,6 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> { ...@@ -249,4 +250,6 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
CompanyProVo getFundPersionExportVoOne(@Param("houseName") String houseName,@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo); CompanyProVo getFundPersionExportVoOne(@Param("houseName") String houseName,@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo);
HouseNameConfigVo getFundSumExportVoTwo(@Param("houseName") String houseName,@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo); HouseNameConfigVo getFundSumExportVoTwo(@Param("houseName") String houseName,@Param("tDispatchInfo") SocialHandleSearchVo dispatchInfo);
Map<String, String> getAutoFlag(@Param("idsList")List<String> idsList);
} }
...@@ -3323,6 +3323,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3323,6 +3323,11 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
// 获取所有派单信息 // 获取所有派单信息
List<TDispatchInfo> dispatchs = baseMapper.selectList(Wrappers.<TDispatchInfo>query().lambda().in(TDispatchInfo::getId, idsList)); List<TDispatchInfo> dispatchs = baseMapper.selectList(Wrappers.<TDispatchInfo>query().lambda().in(TDispatchInfo::getId, idsList));
// 获取所有派单对应的自动化配置信息
Map<String,String> autoFlagMap = baseMapper.getAutoFlag(idsList);
if (Common.isNotNull(autoFlagMap)){
autoFlagMap = new HashMap<>();
}
if (Common.isNotNull(dispatchs)) { if (Common.isNotNull(dispatchs)) {
// 获取所有派单查询信息 // 获取所有派单查询信息
Map<String,TSocialFundInfo> socialFundMap = initSocialFundMap(dispatchs); Map<String,TSocialFundInfo> socialFundMap = initSocialFundMap(dispatchs);
...@@ -3337,9 +3342,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3337,9 +3342,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
int forecastFlag; int forecastFlag;
// 是否SSC,true是 // 是否SSC,true是
boolean isSSC; boolean isSSC;
String autoFlag ="0";
TDispatchSocialFundInfo socialFundInfo; TDispatchSocialFundInfo socialFundInfo;
for (TDispatchInfo dis : dispatchs) { for (TDispatchInfo dis : dispatchs) {
autoFlag = autoFlagMap.get(dis.getId());
isSSC = CommonConstants.FIVE_STRING.equals(dis.getStatus()); isSSC = CommonConstants.FIVE_STRING.equals(dis.getStatus());
forecastFlag = getForecastFlag(dis); forecastFlag = getForecastFlag(dis);
auditInfo = new TAuditInfo(); auditInfo = new TAuditInfo();
...@@ -3570,8 +3576,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3570,8 +3576,15 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dis.setAuditUser(user.getId()); dis.setAuditUser(user.getId());
dis.setAuditUserName(user.getNickname()); dis.setAuditUserName(user.getNickname());
dis.setAuditTime(now); dis.setAuditTime(now);
//人工处理
if (CommonConstants.ONE_STRING.equals(auditStatus)){
dis.setAutoFlag("1");
}
//自动化处理,如果未配置还是人工处理
if (CommonConstants.THREE_STRING.equals(auditStatus)){
dis.setAutoFlag(Common.isEmpty(autoFlag)?"1":autoFlag);
}
baseMapper.updateById(dis); baseMapper.updateById(dis);
socialFundMapper.updateById(sf); socialFundMapper.updateById(sf);
//派减的申请审核完更新社保公积金查询快照表 //派减的申请审核完更新社保公积金查询快照表
...@@ -3686,7 +3699,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3686,7 +3699,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
return R.failed(DispatchConstants.DISPATCH_ID_NOT_EMPTY); return R.failed(DispatchConstants.DISPATCH_ID_NOT_EMPTY);
} }
int flag; int flag;
if (CommonConstants.ONE_STRING.equals(auditStatus)) { if (CommonConstants.ONE_STRING.equals(auditStatus) || CommonConstants.THREE_STRING.equals(auditStatus)) {
//审核通过 //审核通过
flag = CommonConstants.ZERO_INT; flag = CommonConstants.ZERO_INT;
} else if (CommonConstants.TWO_STRING.equals(auditStatus)) { } else if (CommonConstants.TWO_STRING.equals(auditStatus)) {
......
...@@ -2224,5 +2224,14 @@ ...@@ -2224,5 +2224,14 @@
OR ( APPLY_END_DATE IS NULL OR APPLY_END_DATE = '' )) OR ( APPLY_END_DATE IS NULL OR APPLY_END_DATE = '' ))
GROUP BY A.`NAME` GROUP BY A.`NAME`
</select> </select>
<select id="getAutoFlag" resultType="java.util.Map">
select a.id,b.AUTO_STATUS
FROM t_dispatch_info a
LEFT JOIN sys_house_hold_info b on a.SOCIAL_HOUSEHOLD_NAME=b.`NAME` and b.TYPE='0'
where a.SOCIAL_HOUSEHOLD_NAME is not null
and a.id in
<foreach item="item" index="index" collection="idsList" open="(" separator="," close=")">
#{item.id}
</foreach>
</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