|
@@ -8,6 +8,7 @@ import com.ozs.base.domain.BaseAgency;
|
|
|
import com.ozs.base.service.BaseAgencyService;
|
|
|
import com.ozs.base.vo.BaseAgentPageReqVo;
|
|
|
import com.ozs.common.annotation.Log;
|
|
|
+import com.ozs.common.constant.ModularConstans;
|
|
|
import com.ozs.common.core.controller.BaseController;
|
|
|
import com.ozs.common.core.domain.AjaxResult;
|
|
|
import com.ozs.common.enums.BusinessType;
|
|
@@ -23,7 +24,7 @@ import javax.validation.constraints.NotEmpty;
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
-@Api(tags = "招标代理机构管理")
|
|
|
+@Api(tags = ModularConstans.agency)
|
|
|
@RestController
|
|
|
@RequestMapping("/base/agency")
|
|
|
public class BaseAgencyController extends BaseController {
|
|
@@ -34,8 +35,9 @@ public class BaseAgencyController extends BaseController {
|
|
|
@ApiOperation(value = "新增招标代理机构")
|
|
|
@PostMapping("/insertBaseAgency")
|
|
|
@PreAuthorize("@ss.hasPermi('base:agency:add')")
|
|
|
- @Log(title = "招标代理机构管理", businessType = BusinessType.INSERT)
|
|
|
- public AjaxResult insertBaseAgency(@NotEmpty(message = "数据为空") @RequestBody BaseAgency baseAgency) {
|
|
|
+ @Log(title = ModularConstans.agency, businessType = BusinessType.INSERT)
|
|
|
+ public AjaxResult insertBaseAgency(@NotEmpty(message = "数据为空")
|
|
|
+ @RequestBody BaseAgency baseAgency) {
|
|
|
// if (ObjectUtils.isEmpty(baseAgency)) {
|
|
|
// return error("数据为空");
|
|
|
// }
|
|
@@ -51,7 +53,7 @@ public class BaseAgencyController extends BaseController {
|
|
|
@ApiOperation(value = "查看招标代理机构")
|
|
|
@PostMapping("/getInfo")
|
|
|
@PreAuthorize("@ss.hasPermi('base:agency:query')")
|
|
|
- @Log(title = "招标代理机构管理", businessType = BusinessType.QUERY)
|
|
|
+ @Log(title = ModularConstans.agency, businessType = BusinessType.QUERY)
|
|
|
public AjaxResult getInfo(@NotEmpty(message = "主键id不能为空")
|
|
|
@RequestParam(value = "id", required = true)
|
|
|
Long id) {
|
|
@@ -62,7 +64,7 @@ public class BaseAgencyController extends BaseController {
|
|
|
@ApiOperation(value = "修改招标代理机构信息")
|
|
|
@PostMapping("/updateInfo")
|
|
|
@PreAuthorize("@ss.hasPermi('base:agency:edit')")
|
|
|
- @Log(title = "招标代理机构管理", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = ModularConstans.agency, businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult updateInfo(@NotEmpty(message = "数据为空")
|
|
|
@RequestBody BaseAgency baseAgency) {
|
|
|
baseAgency.setUpdateTime(new Date());
|
|
@@ -73,7 +75,7 @@ public class BaseAgencyController extends BaseController {
|
|
|
@ApiOperation(value = "操作招标代理机构黑白名单")
|
|
|
@PostMapping("/operationBlacklist")
|
|
|
@PreAuthorize("@ss.hasPermi('base:agency:edit')")
|
|
|
- @Log(title = "招标代理机构管理", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = ModularConstans.agency, businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult operationBlacklist(@NotEmpty(message = "主键id不能为空")
|
|
|
@RequestParam(value = "id", required = true)
|
|
|
Long id,
|
|
@@ -90,7 +92,7 @@ public class BaseAgencyController extends BaseController {
|
|
|
@ApiOperation(value = "删除招标代理机构信息")
|
|
|
@PostMapping("/remove")
|
|
|
@PreAuthorize("@ss.hasPermi('base:agency:remove')")
|
|
|
- @Log(title = "招标代理机构管理", businessType = BusinessType.DELETE)
|
|
|
+ @Log(title = ModularConstans.agency, businessType = BusinessType.DELETE)
|
|
|
public AjaxResult remove(@NotEmpty(message = "主键id不能为空")
|
|
|
@RequestParam(value = "id", required = true)
|
|
|
Long id) {
|
|
@@ -100,7 +102,7 @@ public class BaseAgencyController extends BaseController {
|
|
|
@ApiOperation(value = "分页查询招标代理机构信息")
|
|
|
@PostMapping("/page")
|
|
|
@PreAuthorize("@ss.hasPermi('base:agency:list')")
|
|
|
- @Log(title = "招标代理机构管理", businessType = BusinessType.QUERY)
|
|
|
+ @Log(title = ModularConstans.agency, businessType = BusinessType.QUERY)
|
|
|
public AjaxResult page(@NotEmpty(message = "数据为空") @RequestBody BaseAgentPageReqVo vo) {
|
|
|
LambdaQueryWrapper<BaseAgency> lw = new LambdaQueryWrapper<BaseAgency>();
|
|
|
if(!StringUtils.isBlank(vo.getCompanyName())){
|