Commit e6420008 by 吴迪

【修改】政府采购

parent 54961e05
...@@ -11,6 +11,7 @@ import io.office.modules.manage.service.ApplicationCaseService; ...@@ -11,6 +11,7 @@ import io.office.modules.manage.service.ApplicationCaseService;
import io.office.modules.manage.service.TokenCountService; import io.office.modules.manage.service.TokenCountService;
import io.office.modules.sys.controller.AbstractController; import io.office.modules.sys.controller.AbstractController;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
...@@ -41,7 +42,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -41,7 +42,7 @@ public class ApplicationCaseController extends AbstractController {
* 列表 * 列表
*/ */
@RequestMapping("/list") @RequestMapping("/list")
//@RequiresPermissions("manage:applicationcase:list") @RequiresPermissions("publicmanage:cases:list")
public R list(@RequestBody Map<String, Object> params) { public R list(@RequestBody Map<String, Object> params) {
PageUtils page = applicationCaseService.queryPage(params); PageUtils page = applicationCaseService.queryPage(params);
...@@ -52,7 +53,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -52,7 +53,7 @@ public class ApplicationCaseController extends AbstractController {
@RequestMapping("/api/list") @RequestMapping("/api/list")
//@RequiresPermissions("manage:applicationcase:list") //@RequiresPermissions("manage:applicationcase:list")
public R getList(@RequestBody Map<String, Object> params) { public R getList(@RequestBody Map<String, Object> params) {
PageUtils page = applicationCaseService.queryPage(params); PageUtils page = applicationCaseService.getList(params);
return R.ok().put("data", page); return R.ok().put("data", page);
} }
...@@ -61,7 +62,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -61,7 +62,7 @@ public class ApplicationCaseController extends AbstractController {
* 信息 * 信息
*/ */
@RequestMapping("/info/{id}") @RequestMapping("/info/{id}")
//@RequiresPermissions("manage:applicationcase:info") @RequiresPermissions("publicmanage:cases:info")
public R info(@PathVariable("id") String id) { public R info(@PathVariable("id") String id) {
ApplicationCaseEntity applicationCase = applicationCaseService.getById(id); ApplicationCaseEntity applicationCase = applicationCaseService.getById(id);
return R.ok().put("data", applicationCase); return R.ok().put("data", applicationCase);
...@@ -72,7 +73,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -72,7 +73,7 @@ public class ApplicationCaseController extends AbstractController {
*/ */
@SysLog("保存政府采购应用案例") @SysLog("保存政府采购应用案例")
@RequestMapping("/save") @RequestMapping("/save")
//@RequiresPermissions("manage:applicationcase:save") @RequiresPermissions("publicmanage:cases:save")
public R save(@RequestBody ApplicationCaseEntity applicationCaseEntity) { public R save(@RequestBody ApplicationCaseEntity applicationCaseEntity) {
//校验参数 //校验参数
// ValidatorUtils.validateEntity(applicationCase, AddGroup.class); // ValidatorUtils.validateEntity(applicationCase, AddGroup.class);
...@@ -89,7 +90,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -89,7 +90,7 @@ public class ApplicationCaseController extends AbstractController {
*/ */
@SysLog("修改政府采购应用案例") @SysLog("修改政府采购应用案例")
@RequestMapping("/update") @RequestMapping("/update")
//@RequiresPermissions("manage:applicationcase:update") @RequiresPermissions("publicmanage:cases:update")
public R update(@RequestBody ApplicationCaseEntity applicationCaseEntity) { public R update(@RequestBody ApplicationCaseEntity applicationCaseEntity) {
applicationCaseService.updateApplicationCaseById(applicationCaseEntity, getUser()); applicationCaseService.updateApplicationCaseById(applicationCaseEntity, getUser());
return R.ok(); return R.ok();
...@@ -100,7 +101,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -100,7 +101,7 @@ public class ApplicationCaseController extends AbstractController {
*/ */
@SysLog("删除政府采购应用案例") @SysLog("删除政府采购应用案例")
@RequestMapping("/delete") @RequestMapping("/delete")
//@RequiresPermissions("manage:applicationcase:delete") @RequiresPermissions("publicmanage:cases:delete")
public R delete(@RequestBody String[] ids) { public R delete(@RequestBody String[] ids) {
for(String id :ids) { for(String id :ids) {
UpdateWrapper<ApplicationCaseEntity> applicationCaseEntityUpdateWrapper = new UpdateWrapper<>(); UpdateWrapper<ApplicationCaseEntity> applicationCaseEntityUpdateWrapper = new UpdateWrapper<>();
...@@ -114,7 +115,7 @@ public class ApplicationCaseController extends AbstractController { ...@@ -114,7 +115,7 @@ public class ApplicationCaseController extends AbstractController {
@SysLog("审批政府采购应用案例") @SysLog("审批政府采购应用案例")
@RequestMapping("/check") @RequestMapping("/check")
//@RequiresPermissions("manage:applicationcase:delete") @RequiresPermissions("publicmanage:cases:check")
public R check(@RequestBody ApplicationCaseEntity applicationCaseEntity) { public R check(@RequestBody ApplicationCaseEntity applicationCaseEntity) {
applicationCaseService.checkApplicationCaseById(applicationCaseEntity, getUser()); applicationCaseService.checkApplicationCaseById(applicationCaseEntity, getUser());
return R.ok(); return R.ok();
......
...@@ -61,7 +61,7 @@ public class ApplicationCaseServiceImpl extends ServiceImpl<ApplicationCaseDao, ...@@ -61,7 +61,7 @@ public class ApplicationCaseServiceImpl extends ServiceImpl<ApplicationCaseDao,
QueryWrapper<ApplicationCaseEntity> applicationCaseEntityQueryWrapper = new QueryWrapper<>(); QueryWrapper<ApplicationCaseEntity> applicationCaseEntityQueryWrapper = new QueryWrapper<>();
applicationCaseEntityQueryWrapper.gt("status", 0); applicationCaseEntityQueryWrapper.gt("status", 0);
applicationCaseEntityQueryWrapper.orderByAsc("levels"); applicationCaseEntityQueryWrapper.orderByAsc("levels");
applicationCaseEntityQueryWrapper.orderByDesc("show_date"); applicationCaseEntityQueryWrapper.orderByDesc("show_time");
IPage<ApplicationCaseEntity> page = this.page( IPage<ApplicationCaseEntity> page = this.page(
new Query<ApplicationCaseEntity>().getPage(params), new Query<ApplicationCaseEntity>().getPage(params),
applicationCaseEntityQueryWrapper applicationCaseEntityQueryWrapper
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment