默认101

This commit is contained in:
kuang.yife 2023-05-17 20:38:08 +08:00
parent ea2d9d683b
commit 4a094c256e
2 changed files with 5 additions and 2 deletions

View File

@ -159,6 +159,9 @@ public class WorkerBankController extends BaseController {
@ResponseBody
public AjaxResult getByWorkerId(@RequestBody WorkerBindBankCardRequest request) {
try {
if(request.getDeptId() == null){
request.setDeptId(101L);
}
return AjaxResult.success(workerBankService.getByWorkerId(request.getWorkerId(), request.getDeptId()));
} catch (Exception e) {

View File

@ -213,7 +213,7 @@ public class WorkerCertificationController extends BaseController
@PostMapping("/changeStatus")
@ResponseBody
public AjaxResult changeStatus(String ids,Integer status, Long deptId){
public AjaxResult changeStatus(String ids,Integer status){
try {
int result = workerCertificationService.changeStatus(ids, status);
if(result > 0){
@ -221,7 +221,7 @@ public class WorkerCertificationController extends BaseController
for (String id : idArray){
WorkerCertification workerCertification = workerCertificationService.selectWorkerCertificationByWorkerCertificationId(id);
// 是否绑定了银行卡
WorkerBank workerBank = workerBankService.getByWorkerId(workerCertification.getWorkerId(), deptId);
WorkerBank workerBank = workerBankService.getByWorkerId(workerCertification.getWorkerId(), 101L);
// 没有绑定了银行卡的用户
if(ObjectUtils.isEmpty(workerBank)){
return AjaxResult.success("操作成功!");