Commit 00c4083a authored by fangxinjiang's avatar fangxinjiang

社保公积金办理导出标识

parent a166cd6f
...@@ -628,11 +628,12 @@ public class TDispatchInfoController { ...@@ -628,11 +628,12 @@ public class TDispatchInfoController {
@Operation(summary = "社保花名册导出标识变更为否", description = "社保花名册导出标识变更为否") @Operation(summary = "社保花名册导出标识变更为否", description = "社保花名册导出标识变更为否")
@SysLog("社保花名册导出标识变更为否" ) @SysLog("社保花名册导出标识变更为否" )
@PostMapping("/updateExportSocialFlagById") @PostMapping("/updateExportSocialFlagById")
public R<Boolean> updateExportSocialFlagById(@RequestParam(value = "id") String id) { public R<Boolean> updateExportSocialFlagById(@RequestParam(value = "id",required = true) String id
if (Common.isEmpty(id)){ ,@RequestParam(value = "status",required = true) String status) {
if (!CommonConstants.ZERO_STRING.equals(status)&& !CommonConstants.ONE_STRING.equals(status)){
return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY); return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY);
} }
return tDispatchInfoService.updateExportSocialFlagById(id); return tDispatchInfoService.updateExportSocialFlagById(id,status);
} }
/** /**
* 公积金变更清册导出标识变更为否 * 公积金变更清册导出标识变更为否
...@@ -642,10 +643,11 @@ public class TDispatchInfoController { ...@@ -642,10 +643,11 @@ public class TDispatchInfoController {
@Operation(summary = "公积金变更清册导出标识变更为否", description = "公积金变更清册导出标识变更为否") @Operation(summary = "公积金变更清册导出标识变更为否", description = "公积金变更清册导出标识变更为否")
@SysLog("公积金变更清册导出标识变更为否" ) @SysLog("公积金变更清册导出标识变更为否" )
@PostMapping("/updateExportFundFlagById") @PostMapping("/updateExportFundFlagById")
public R<Boolean> updateExportFundFlagById(@RequestParam(value = "id") String id) { public R<Boolean> updateExportFundFlagById(@RequestParam(value = "id",required = true) String id
if (Common.isEmpty(id)){ ,@RequestParam(value = "status",required = true) String status) {
if (!CommonConstants.ZERO_STRING.equals(status)&& !CommonConstants.ONE_STRING.equals(status)){
return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY); return R.failed(CommonConstants.PARAM_IS_NOT_EMPTY);
} }
return tDispatchInfoService.updateExportFundFlagById(id); return tDispatchInfoService.updateExportFundFlagById(id,status);
} }
} }
...@@ -158,8 +158,8 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> { ...@@ -158,8 +158,8 @@ public interface TDispatchInfoMapper extends BaseMapper<TDispatchInfo> {
String getMaxDispatchCode(); String getMaxDispatchCode();
int updateExportSocialFlagById(@Param("id")String id); int updateExportSocialFlagById(@Param("id")String id,@Param("status")String status);
int updateExportFundFlagById(@Param("id")String id); int updateExportFundFlagById(@Param("id")String id,@Param("status")String status);
} }
...@@ -111,7 +111,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> { ...@@ -111,7 +111,7 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
R<List<ErrorMessage>> fundImportHandle(InputStream inputStream); R<List<ErrorMessage>> fundImportHandle(InputStream inputStream);
R<Boolean> updateExportSocialFlagById(String id); R<Boolean> updateExportSocialFlagById(String id,String status);
R<Boolean> updateExportFundFlagById(String id); R<Boolean> updateExportFundFlagById(String id,String status);
} }
...@@ -5102,12 +5102,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -5102,12 +5102,12 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
} }
@Override @Override
public R<Boolean> updateExportSocialFlagById(String id) { public R<Boolean> updateExportSocialFlagById(String id,String status) {
return R.ok(baseMapper.updateExportSocialFlagById(id) >= 0); return R.ok(baseMapper.updateExportSocialFlagById(id,status) >= 0);
} }
@Override @Override
public R<Boolean> updateExportFundFlagById(String id) { public R<Boolean> updateExportFundFlagById(String id,String status) {
return R.ok(baseMapper.updateExportFundFlagById(id) >= 0); return R.ok(baseMapper.updateExportFundFlagById(id,status) >= 0);
} }
} }
...@@ -1034,9 +1034,9 @@ ...@@ -1034,9 +1034,9 @@
<update id="updateSocialRecords"> <update id="updateSocialRecords">
update update
FROM t_dispatch_info a t_dispatch_info a
left join t_social_info s on a.SOCIAL_ID = s.id left join t_social_info s on a.SOCIAL_ID = s.id
set a.EXPORT_FUND_FLAG = 1 set a.EXPORT_SOCIAL_FLAG = 1
<include refid="where_getSocialRecordRoster"/> <include refid="where_getSocialRecordRoster"/>
</update> </update>
...@@ -1136,7 +1136,8 @@ ...@@ -1136,7 +1136,8 @@
f.FUND_TOWN, f.FUND_TOWN,
a.TRUST_REMARK, a.TRUST_REMARK,
a.LEAVE_DATE, a.LEAVE_DATE,
a.REDUCE_REASON a.REDUCE_REASON,
a.EXPORT_FUND_FLAG
FROM t_dispatch_info a FROM t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id left join t_provident_fund f on a.FUND_ID = f.id
<where> <where>
...@@ -1148,11 +1149,9 @@ ...@@ -1148,11 +1149,9 @@
<update id="updateFundRecords"> <update id="updateFundRecords">
update t_dispatch_info a update t_dispatch_info a
left join t_provident_fund f on a.FUND_ID = f.id left join t_provident_fund f on a.FUND_ID = f.id
set a.EXPORT_SOCIAL_FLAG = 1 set a.EXPORT_FUND_FLAG = 1
<where> <where>
<include refid="where_getFundRecord"/> <include refid="where_getFundRecord"/>
group by a.id
order by a.APPLY_NO desc
</where> </where>
</update> </update>
<!--tDispatchInfo 公积金补交清册--> <!--tDispatchInfo 公积金补交清册-->
...@@ -1292,8 +1291,6 @@ ...@@ -1292,8 +1291,6 @@
AND a.EXPORT_SOCIAL_FLAG = ${tDispatchInfo.exportSocialFlag} AND a.EXPORT_SOCIAL_FLAG = ${tDispatchInfo.exportSocialFlag}
</if> </if>
</if> </if>
group by a.id
order by a.APPLY_NO desc
</where> </where>
</sql> </sql>
...@@ -1423,9 +1420,9 @@ ...@@ -1423,9 +1420,9 @@
</select> </select>
<update id="updateExportSocialFlagById"> <update id="updateExportSocialFlagById">
update t_dispatch_info a set a.EXPORT_SOCIAL_FLAG = 1 WHERE a.id = #{id} update t_dispatch_info a set a.EXPORT_SOCIAL_FLAG = #{status} WHERE a.id = #{id}
</update> </update>
<update id="updateExportFundFlagById"> <update id="updateExportFundFlagById">
update t_dispatch_info a set a.EXPORT_FUND_FLAG = 1 WHERE a.id = #{id} update t_dispatch_info a set a.EXPORT_FUND_FLAG = #{status} WHERE a.id = #{id}
</update> </update>
</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