Commit c8ad6cff by 翁国栋

8小时后台--

增加一个可以设置审批人的权限
parent cf8a390b
...@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletRequest; ...@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import com.beust.jcommander.internal.Lists;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
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;
...@@ -853,6 +854,15 @@ public class LoginController { ...@@ -853,6 +854,15 @@ public class LoginController {
QyzxAdminColour cdys = QyzxAdminColour.builder().build().selectOne(new QueryWrapper<QyzxAdminColour>().lambda().eq(QyzxAdminColour::getOrgCode, qyzxEmpLogin1.getOrgId())); QyzxAdminColour cdys = QyzxAdminColour.builder().build().selectOne(new QueryWrapper<QyzxAdminColour>().lambda().eq(QyzxAdminColour::getOrgCode, qyzxEmpLogin1.getOrgId()));
qyzxEmpLogin1.setZdyys(cdys); qyzxEmpLogin1.setZdyys(cdys);
/*不知为何去掉了权限所以只能写死权限,设置审核人的权限路径为/ApprovalSummaryshenpi020102*/
ZzglAuth zzglAuth = ZzglAuth.builder().build().selectOne(new QueryWrapper<ZzglAuth>().lambda().eq(ZzglAuth::getMenuId,"/ApprovalSummaryshenpi020102")
.eq(ZzglAuth::getOrgCode,qyzxEmpLogin1.getOrgId()).eq(ZzglAuth::getBmgwId,qyzxEmpLogin1.getYgglMainEmp().getBmgwId()));
if(zzglAuth!=null){
List menus = Lists.newArrayList();
menus.add(zzglAuth.getMenuId());
qyzxEmpLogin1.setMenus(menus);
}
// 可操作企业 // 可操作企业
// 需要更新最后一次登陆信息 // 需要更新最后一次登陆信息
......
...@@ -103,7 +103,7 @@ public class InsureContorll { ...@@ -103,7 +103,7 @@ public class InsureContorll {
} }
@PostMapping(value = "/insured_add") @PostMapping(value = "/insured_add")
@ApiOperation(value = "1.投保申请", httpMethod = "Post", notes = "投保申请") @ApiOperation(value = "1.投保申请", httpMethod = "POST", notes = "投保申请")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
public Result<Object> insured_add(@CurrentUser UserBean userBean, @RequestParam(required = true) String url) { public Result<Object> insured_add(@CurrentUser UserBean userBean, @RequestParam(required = true) String url) {
QyzxEntInfoM qyzxEntInfoM = QyzxEntInfoM.builder().id(userBean.getOrgCode()).build().selectById(); // 企业信息 QyzxEntInfoM qyzxEntInfoM = QyzxEntInfoM.builder().id(userBean.getOrgCode()).build().selectById(); // 企业信息
...@@ -212,7 +212,7 @@ public class InsureContorll { ...@@ -212,7 +212,7 @@ public class InsureContorll {
@PostMapping (value = "/file_upload") @PostMapping (value = "/file_upload")
@ApiOperation(value = "3.投保上传文件", httpMethod = "Post", notes = "上传文件") @ApiOperation(value = "3.投保上传文件", httpMethod = "POST", notes = "上传文件")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
public Result<Object> fileUpload(@CurrentUser UserBean userBean, @RequestParam(required = true) MultipartFile file) { public Result<Object> fileUpload(@CurrentUser UserBean userBean, @RequestParam(required = true) MultipartFile file) {
if (file == null) { if (file == null) {
...@@ -238,7 +238,7 @@ public class InsureContorll { ...@@ -238,7 +238,7 @@ public class InsureContorll {
return ResultUtil.data(message(data)); return ResultUtil.data(message(data));
}; };
@PostMapping (value = "/file_upload2") @PostMapping (value = "/file_upload2")
@ApiOperation(value = "3.保全上传文件", httpMethod = "Post", notes = "上传文件") @ApiOperation(value = "3.保全上传文件", httpMethod = "POST", notes = "上传文件")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
public Result<Object> fileUpload2(@CurrentUser UserBean userBean, @RequestParam(required = true) MultipartFile file) { public Result<Object> fileUpload2(@CurrentUser UserBean userBean, @RequestParam(required = true) MultipartFile file) {
if (file == null) { if (file == null) {
...@@ -285,7 +285,7 @@ public class InsureContorll { ...@@ -285,7 +285,7 @@ public class InsureContorll {
} }
@GetMapping(value = "/downExcel") @GetMapping(value = "/downExcel")
@ApiOperation(value = "2.下载投保文件", httpMethod = "Get", notes = "下载投保文件") @ApiOperation(value = "2.下载投保文件", httpMethod = "GET", notes = "下载投保文件")
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
public void downExcel(@CurrentUser UserBean userBean, HttpServletRequest request, HttpServletResponse resp){ public void downExcel(@CurrentUser UserBean userBean, HttpServletRequest request, HttpServletResponse resp){
LocalDate localDate = LocalDate.now(); LocalDate localDate = LocalDate.now();
......
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