feat: 工作组调账接口

This commit is contained in:
2024-03-04 18:04:05 +08:00
parent 2784feb463
commit 950f12ad71
3 changed files with 424 additions and 321 deletions
@@ -561,6 +561,24 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
return Result.OK("删除成功!");
}
/**
* 调账
*
* @param workGroupId 工作组Id
* @param companyId 成员单位Id
* @return
*/
@AutoLog(value = "工作组成员-调账",operateType = 4)
@RequiresPermissions("workingGroupMember:editAccount")
@ApiOperation(value = "工作组成员-调账", notes = "工作组成员-调账")
@GetMapping(value = "/editAccount")
public Result<?> editAccount(@RequestParam(name = "workGroupId") String workGroupId,
@RequestParam(name = "companyId") String companyId) {
payWorkingGroupSubItemService.editAccount(workGroupId, companyId);
payWorkingGroupSubItemService.delete(companyId);
return Result.OK("调账成功!");
}
/**
* 批量删除
*
@@ -136,4 +136,12 @@ public interface IPayWorkingGroupSubItemService extends IService<PayWorkingGroup
void deleteLabel(SetLabelVO setLabelVO);
List<PayWorkingGroupSubItem> queryList(QueryWrapper<PayWorkingGroupSubItem> queryPayWorkingGroupSubItem);
/**
* 调账
*
* @param workGroupId 工作组id
* @param companyId 成员单位id
*/
void editAccount(String workGroupId, String companyId);
}