| | |
| | | package com.consum.base.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import java.util.List; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import com.consum.base.pojo.FinSysServerVo; |
| | | import com.consum.base.service.FinSysServerService; |
| | | import com.consum.model.po.FinSysServer; |
| | | import com.iplatform.model.po.S_role; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.DateUtils; |
| | | import com.walker.infrastructure.utils.NumberGenerator; |
| | | import com.walker.web.ResponseValue; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | |
| | | @Api(value = "系统服务信息", tags = "系统服务信息") |
| | | @RestController |
| | | @RequestMapping("/pc/fin/sys/server") |
| | |
| | | */ |
| | | @GetMapping("/selectByDataScope") |
| | | public ResponseValue selectByDataScope(Integer dataScope) { |
| | | return ResponseValue.success(finSysServerServiceImpl.getByDataScope(dataScope)); |
| | | List<S_role> roleList = finSysServerServiceImpl.getByDataScope(dataScope); |
| | | // 过滤仓库管理员的显示 |
| | | roleList.removeIf(role -> role.getRole_name().equals("仓库管理员")); |
| | | return ResponseValue.success(roleList); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (param == null) { |
| | | return ResponseValue.error("参数为空"); |
| | | } |
| | | // if(finSysServer.getLvType()!=null) { |
| | | // finSysServer.setLv(Long.valueOf(finSysServer.getLvType())); |
| | | // } |
| | | int num = this.finSysServerServiceImpl.save(param); |
| | | return num > 0 ? ResponseValue.success(1) : ResponseValue.error("编辑失败!"); |
| | | } |