瀏覽代碼

入职的社保与银行卡完善调整

wangqiang 1 年之前
父節點
當前提交
925efcf5d0

+ 3 - 38
jeeplus-modules/jeeplus-human/src/main/java/com/jeeplus/human/enrollment/enrollmentRegistration/controller/EnrollmentRegistrationController.java

@@ -61,9 +61,6 @@ public class EnrollmentRegistrationController {
     private EnrollmentRegistrationService service;
 
     @Resource
-    private EnrollmentWageCardService wageCardService;
-
-    @Resource
     private EnrollmentSocialSecurityCardService securityCardService;
 
     @Resource
@@ -75,6 +72,9 @@ public class EnrollmentRegistrationController {
     @Resource
     private HandoverService handoverService;
 
+    @Resource
+    private EnrollmentWageCardService wageCardService;
+
     /**
      * 下载门禁卡开通注意事项
      * @param response
@@ -200,20 +200,6 @@ public class EnrollmentRegistrationController {
     }
 
     /**
-     * 保存工资卡信息
-     * @param wageCard
-     * @return
-     */
-    @ApiLog(value = "保存工资卡信息", type = LogTypeEnum.SAVE)
-    @PostMapping("saveWageCard")
-    public ResponseEntity saveWageCard(@Valid @RequestBody EnrollmentWageCard wageCard) throws Exception {
-        EnrollmentWageCard s = wageCardService.saveWageCard(wageCard);
-        return ResponseUtil.newInstance().add("businessTable", "human_resources_enrollment_wage_card")
-                .add("businessId", s.getId())
-                .ok ("操作成功");
-    }
-
-    /**
      * 保存社保信息
      * @param securityCard
      * @return
@@ -268,18 +254,6 @@ public class EnrollmentRegistrationController {
     }
 
     /**
-     * 根据人员登记id查询工资卡信息
-     * @param id
-     * @return
-     */
-    @ApiOperation(value = "根据人员登记id查询工资卡信息")
-    @GetMapping("/findWageCardById")
-    public ResponseEntity<EnrollmentWageCard> findWageCardById(@RequestParam String id) throws Exception{
-        EnrollmentWageCard dto = wageCardService.findById(id);
-        return ResponseEntity.ok(dto);
-    }
-
-    /**
      * 根据人员登记id查询社保信息
      * @param id
      * @return
@@ -316,15 +290,6 @@ public class EnrollmentRegistrationController {
     }
 
     /**
-     * 根据人员登记id修改状态工资卡信息流程的status
-     */
-    @ApiOperation(value = "根据人员登记id修改状态工资卡信息流程的status")
-    @PostMapping(value = "updateWageCardStatusById")
-    public void updateWageCardStatusById(@RequestBody EnrollmentWageCard dto) {
-        wageCardService.updateStatusById(dto);
-    }
-
-    /**
      * 根据人员登记id修改状态社保信息流程的status
      */
     @ApiOperation(value = "根据人员登记id修改状态社保信息流程的status")

+ 63 - 0
jeeplus-modules/jeeplus-human/src/main/java/com/jeeplus/human/enrollment/enrollmentRegistration/controller/EnrollmentWageCardController.java

@@ -0,0 +1,63 @@
+package com.jeeplus.human.enrollment.enrollmentRegistration.controller;
+
+import com.jeeplus.common.utils.ResponseUtil;
+import com.jeeplus.human.enrollment.enrollmentRegistration.domain.EnrollmentWageCard;
+import com.jeeplus.human.enrollment.enrollmentRegistration.service.EnrollmentWageCardService;
+import com.jeeplus.logging.annotation.ApiLog;
+import com.jeeplus.logging.constant.enums.LogTypeEnum;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.validation.Valid;
+
+/**
+ * @author 王强
+ * @version 1.0
+ * @date 2023-12-03 11:20
+ */
+@RestController
+@Api("入职人员工资登记表信息")
+@RequestMapping(value = "/enrollmentWageCard")
+public class EnrollmentWageCardController {
+
+    @Resource
+    private EnrollmentWageCardService wageCardService;
+
+    /**
+     * 保存工资卡信息
+     * @param wageCard
+     * @return
+     */
+    @ApiLog(value = "保存工资卡信息", type = LogTypeEnum.SAVE)
+    @PostMapping("saveWageCard")
+    public ResponseEntity saveWageCard(@Valid @RequestBody EnrollmentWageCard wageCard) throws Exception {
+        EnrollmentWageCard s = wageCardService.saveWageCard(wageCard);
+        return ResponseUtil.newInstance().add("businessTable", "human_resources_enrollment_wage_card")
+                .add("businessId", s.getId())
+                .ok ("操作成功");
+    }
+
+    /**
+     * 根据人员登记id查询工资卡信息
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "根据人员登记id查询工资卡信息")
+    @GetMapping("/findWageCardById")
+    public ResponseEntity<EnrollmentWageCard> findWageCardById(@RequestParam String id) throws Exception{
+        EnrollmentWageCard dto = wageCardService.findById(id);
+        return ResponseEntity.ok(dto);
+    }
+
+    /**
+     * 根据人员登记id修改状态工资卡信息流程的status
+     */
+    @ApiOperation(value = "根据人员登记id修改状态工资卡信息流程的status")
+    @PostMapping(value = "updateWageCardStatusById")
+    public void updateWageCardStatusById(@RequestBody EnrollmentWageCard dto) {
+        wageCardService.updateStatusById(dto);
+    }
+}

+ 6 - 0
jeeplus-modules/jeeplus-human/src/main/java/com/jeeplus/human/enrollment/enrollmentRegistration/service/EnrollmentRegistrationService.java

@@ -62,6 +62,12 @@ public class EnrollmentRegistrationService extends ServiceImpl<EnrollmentRegistr
     public IPage<EnrollmentRegistration> findList(Page<EnrollmentRegistration> page, EnrollmentRegistration projectReportData) throws Exception{
         QueryWrapper<EnrollmentRegistration> queryWrapper = QueryWrapperGenerator.buildQueryCondition (projectReportData,EnrollmentRegistration.class);
         queryWrapper.eq("a.del_flag","0");
+        if (StringUtils.isNotBlank(projectReportData.getMobilePhone())) {
+            queryWrapper.eq("a.mobile_phone",projectReportData.getMobilePhone());
+        }
+        if (StringUtils.isNotBlank(projectReportData.getName())) {
+            queryWrapper.like("a.name",projectReportData.getName());
+        }
         IPage<EnrollmentRegistration> list = mapper.findList(page, queryWrapper);
         return list;