|
|
@@ -43,7 +43,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "企业信息分页列表")
|
|
|
@GetMapping("/page")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:query')")
|
|
|
public PageResult<FirmInfoVO> getFirmInfoPage(FirmInfoQuery queryParams ) {
|
|
|
IPage<FirmInfoVO> result = firmInfoService.getFirmInfoPage(queryParams);
|
|
|
return PageResult.success(result);
|
|
|
@@ -51,7 +51,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "企业信息列表")
|
|
|
@GetMapping("/list")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:query')")
|
|
|
public Result<List<FirmInfoVO>> getFirmInfoList() {
|
|
|
List<FirmInfoVO> result = firmInfoConverter.toVO(firmInfoService.list());
|
|
|
return Result.success(result);
|
|
|
@@ -59,7 +59,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "新增企业信息")
|
|
|
@PostMapping
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:add')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:add')")
|
|
|
public Result<Void> saveFirmInfo(@RequestBody @Valid FirmInfoForm formData ) {
|
|
|
boolean result = firmInfoService.saveFirmInfo(formData);
|
|
|
return Result.judge(result);
|
|
|
@@ -67,7 +67,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "获取企业信息表单数据")
|
|
|
@GetMapping("/{id}/form")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:edit')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:edit')")
|
|
|
public Result<FirmInfoForm> getFirmInfoForm(
|
|
|
@Parameter(description = "企业信息ID") @PathVariable Long id
|
|
|
) {
|
|
|
@@ -77,7 +77,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "修改企业信息")
|
|
|
@PutMapping(value = "/{id}")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:edit')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:edit')")
|
|
|
public Result<Void> updateFirmInfo(
|
|
|
@Parameter(description = "企业信息ID") @PathVariable Long id,
|
|
|
@RequestBody @Validated FirmInfoForm formData
|
|
|
@@ -88,7 +88,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "删除企业信息")
|
|
|
@DeleteMapping("/{ids}")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:delete')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:delete')")
|
|
|
public Result<Void> deleteFirmInfos(
|
|
|
@Parameter(description = "企业信息ID,多个以英文逗号(,)分割") @PathVariable String ids
|
|
|
) {
|
|
|
@@ -98,7 +98,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "企业上账(充值)")
|
|
|
@PostMapping("/recharge")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:recharge')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:recharge')")
|
|
|
@Log(value = "企业上账", module = LogModuleEnum.OTHER)
|
|
|
public Result<Void> recharge(
|
|
|
@Parameter(description = "企业ID") @RequestParam Long firmId,
|
|
|
@@ -111,7 +111,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "企业下账(扣款)")
|
|
|
@PostMapping("/deduct")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:deduct')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:deduct')")
|
|
|
@Log(value = "企业下账", module = LogModuleEnum.OTHER)
|
|
|
public Result<Void> deduct(
|
|
|
@Parameter(description = "企业ID") @RequestParam Long firmId,
|
|
|
@@ -124,7 +124,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "企业余额变更(通用)")
|
|
|
@PostMapping("/changeBalance")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:recharge')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:recharge')")
|
|
|
@Log(value = "企业余额变更", module = LogModuleEnum.OTHER)
|
|
|
public Result<Void> changeBalance(@RequestBody @Valid FirmBalanceChangeForm form) {
|
|
|
boolean result = firmInfoService.changeBalance(form);
|
|
|
@@ -133,7 +133,7 @@ public class FirmInfoController {
|
|
|
|
|
|
@Operation(summary = "获取可用部门选项(用于新增/编辑企业信息时选择关联部门)")
|
|
|
@GetMapping("/availableDeptOptions")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:firmInfo:add') or @ss.hasPerm('business:firmInfo:edit')")
|
|
|
+ // @PreAuthorize("@ss.hasPerm('business:firmInfo:add') or @ss.hasPerm('business:firmInfo:edit')")
|
|
|
public Result<List<Option<Long>>> getAvailableDeptOptions(
|
|
|
@Parameter(description = "编辑时排除的企业ID") @RequestParam(required = false) Long excludeId
|
|
|
) {
|