bug修改
This commit is contained in:
parent
3e14466911
commit
91c7522135
|
|
@ -106,6 +106,22 @@ public class RequestCoverFilter implements GlobalFilter, Ordered {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
Object obj= formData.get(SystemGlobal.FORM_DATA);
|
||||||
|
if(!ObjectUtils.isEmpty(obj)){
|
||||||
|
String data= obj.toString();
|
||||||
|
if(StringUtils.isEmpty(data)){
|
||||||
|
return CommonConstant.buildResponse(exchange, HttpStatus.BAD_REQUEST.value(), "请输入正确的请求参数");
|
||||||
|
}
|
||||||
|
String[] params=data.split("&");
|
||||||
|
for (int i = 0; i < params.length; i++) {
|
||||||
|
String[] param=params[i].split("=");
|
||||||
|
formData2.add(param[0],param[1]);
|
||||||
|
}
|
||||||
|
formData=formData2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
StringBuilder formDataBodyBuilder = new StringBuilder();
|
StringBuilder formDataBodyBuilder = new StringBuilder();
|
||||||
String entryKey;
|
String entryKey;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
import java.net.URLDecoder;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
@ -92,8 +93,9 @@ public class CoursewareLibraryController {
|
||||||
while ((line = bufferedReader.readLine()) != null) {
|
while ((line = bufferedReader.readLine()) != null) {
|
||||||
stringBuilder.append(line);
|
stringBuilder.append(line);
|
||||||
}
|
}
|
||||||
String courseId = stringBuilder.toString().split("&")[0].split("=")[1];
|
String str=decord(stringBuilder.toString());
|
||||||
String fileType = stringBuilder.toString().split("&")[1].split("=")[1];
|
String courseId = str.split("&")[0].split("=")[1];
|
||||||
|
String fileType =str.split("&")[1].split("=")[1];
|
||||||
if (!StaticVariableUtils.ONE.equals(fileType)) {
|
if (!StaticVariableUtils.ONE.equals(fileType)) {
|
||||||
dto.setCoursewareId(Integer.parseInt(courseId));
|
dto.setCoursewareId(Integer.parseInt(courseId));
|
||||||
}
|
}
|
||||||
|
|
@ -106,6 +108,16 @@ public class CoursewareLibraryController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String decord(String str){
|
||||||
|
try{
|
||||||
|
return URLDecoder.decode(str, StandardCharsets.UTF_8.toString());
|
||||||
|
}catch (Exception e){
|
||||||
|
log.error(e.toString(),e);
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 课件上传
|
* 课件上传
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import com.bonus.common.log.enums.OperaType;
|
||||||
import com.bonus.flowable.entity.AuditTask;
|
import com.bonus.flowable.entity.AuditTask;
|
||||||
import com.bonus.flowable.service.BusinessService;
|
import com.bonus.flowable.service.BusinessService;
|
||||||
import com.bonus.flowable.utils.FlowTaskUtils;
|
import com.bonus.flowable.utils.FlowTaskUtils;
|
||||||
|
import com.bonus.system.api.RemoteUserService;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
@ -37,10 +38,14 @@ public class BusinessController {
|
||||||
@Resource
|
@Resource
|
||||||
private FlowTaskUtils flowTaskUtils;
|
private FlowTaskUtils flowTaskUtils;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/submitApproval")
|
@PostMapping("/submitApproval")
|
||||||
@SysLog(title = "入场申请", businessType = OperaType.QUERY, logType = 0, module = "入场申请", details = "提交审批")
|
@SysLog(title = "入场申请", businessType = OperaType.QUERY, logType = 0, module = "入场申请", details = "提交审批")
|
||||||
public AjaxResult submitApproval(@RequestBody AuditTask auditTask) {
|
public AjaxResult submitApproval(@RequestBody AuditTask auditTask) {
|
||||||
return businessService.submitApproval(auditTask);
|
return businessService.submitApproval(auditTask);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/submitMulApproval")
|
@PostMapping("/submitMulApproval")
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,6 @@ public class CheckComment {
|
||||||
private String examType;
|
private String examType;
|
||||||
private String sort;
|
private String sort;
|
||||||
|
|
||||||
|
private String agree;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.bonus.flowable.service.impl;
|
package com.bonus.flowable.service.impl;
|
||||||
|
|
||||||
import com.bonus.common.core.domain.BaseBean;
|
import com.bonus.common.core.domain.BaseBean;
|
||||||
|
import com.bonus.common.core.domain.MsgBean;
|
||||||
import com.bonus.common.core.utils.StaticVariableUtils;
|
import com.bonus.common.core.utils.StaticVariableUtils;
|
||||||
import com.bonus.common.core.utils.StringUtils;
|
import com.bonus.common.core.utils.StringUtils;
|
||||||
import com.bonus.common.core.web.domain.AjaxResult;
|
import com.bonus.common.core.web.domain.AjaxResult;
|
||||||
|
|
@ -12,8 +13,10 @@ import com.bonus.flowable.entity.*;
|
||||||
import com.bonus.flowable.mapper.BusinessMapper;
|
import com.bonus.flowable.mapper.BusinessMapper;
|
||||||
import com.bonus.flowable.service.BpmnModelService;
|
import com.bonus.flowable.service.BpmnModelService;
|
||||||
import com.bonus.flowable.service.BusinessService;
|
import com.bonus.flowable.service.BusinessService;
|
||||||
|
import com.bonus.system.api.RemoteUserService;
|
||||||
import com.bonus.system.api.domain.SysUser;
|
import com.bonus.system.api.domain.SysUser;
|
||||||
import com.bonus.system.api.model.LoginUser;
|
import com.bonus.system.api.model.LoginUser;
|
||||||
|
import liquibase.pro.packaged.M;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
@ -39,6 +42,9 @@ public class BusinessServiceImpl implements BusinessService {
|
||||||
@Resource
|
@Resource
|
||||||
private BusinessMapper mapper;
|
private BusinessMapper mapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private RemoteUserService remoteUserService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult submitApproval(AuditTask auditTask) {
|
public AjaxResult submitApproval(AuditTask auditTask) {
|
||||||
//任务id
|
//任务id
|
||||||
|
|
@ -82,7 +88,7 @@ public class BusinessServiceImpl implements BusinessService {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
sedPhoneMsg();
|
||||||
ConfigurationVo cd = null;
|
ConfigurationVo cd = null;
|
||||||
// if("0".equals(examineId)){
|
// if("0".equals(examineId)){
|
||||||
String screenExamineId = getExamineIdByProAndCheckType(auditTask.getProId(), auditTask.getTaskType());
|
String screenExamineId = getExamineIdByProAndCheckType(auditTask.getProId(), auditTask.getTaskType());
|
||||||
|
|
@ -1151,4 +1157,24 @@ public class BusinessServiceImpl implements BusinessService {
|
||||||
public void updateTaskIsPassStatus(String taskId, String isPass) {
|
public void updateTaskIsPassStatus(String taskId, String isPass) {
|
||||||
mapper.updateTaskIsPassStatus(taskId, isPass);
|
mapper.updateTaskIsPassStatus(taskId, isPass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void sedPhoneMsg(){
|
||||||
|
try{
|
||||||
|
MsgBean bean=new MsgBean();
|
||||||
|
bean.setMsg("您有新的审核数据进行审核,");
|
||||||
|
bean.setPhone("15755022653");
|
||||||
|
remoteUserService.setPhoneMsg(bean);
|
||||||
|
}catch (Exception e){
|
||||||
|
log.error(e.toString(),e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -504,6 +504,7 @@
|
||||||
SELECT
|
SELECT
|
||||||
c.ii as id,
|
c.ii as id,
|
||||||
c.id AS userId,
|
c.id AS userId,
|
||||||
|
d.agree,
|
||||||
IFNULL( d.`comment`, '' ) AS reason,
|
IFNULL( d.`comment`, '' ) AS reason,
|
||||||
IFNULL( d.reject, '' ) AS turnDownReason,
|
IFNULL( d.reject, '' ) AS turnDownReason,
|
||||||
IFNULL( d.time, '' ) AS time,
|
IFNULL( d.time, '' ) AS time,
|
||||||
|
|
@ -519,6 +520,7 @@
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
id,
|
id,
|
||||||
|
b.agree,
|
||||||
a.proc_inst_id,
|
a.proc_inst_id,
|
||||||
version,
|
version,
|
||||||
repeated_submit,
|
repeated_submit,
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,6 @@ public class SubController extends BaseController {
|
||||||
@SysLog(title = "分包商管理", businessType = OperaType.QUERY,logType = 0,module = "分包商管理->分包商人员入场申请列表")
|
@SysLog(title = "分包商管理", businessType = OperaType.QUERY,logType = 0,module = "分包商管理->分包商人员入场申请列表")
|
||||||
public TableDataInfo enterPersonList(SubPerson bean) {
|
public TableDataInfo enterPersonList(SubPerson bean) {
|
||||||
try{
|
try{
|
||||||
// startPage();
|
|
||||||
List<SubPerson> list = service.enterPersonList(bean);
|
List<SubPerson> list = service.enterPersonList(bean);
|
||||||
return getDataTable1(list);
|
return getDataTable1(list);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ public class ContEntryExit extends BaseBean {
|
||||||
* 审批状态
|
* 审批状态
|
||||||
*/
|
*/
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
private String intoStatus;
|
private String intoStatus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.bonus.project.service.impl;
|
package com.bonus.project.service.impl;
|
||||||
|
|
||||||
|
import com.aspose.words.IFieldMergingCallback;
|
||||||
import com.bonus.common.core.domain.R;
|
import com.bonus.common.core.domain.R;
|
||||||
import com.bonus.common.core.domain.RequestEntity;
|
import com.bonus.common.core.domain.RequestEntity;
|
||||||
import com.bonus.common.core.utils.DateUtils;
|
import com.bonus.common.core.utils.DateUtils;
|
||||||
|
|
@ -15,6 +16,7 @@ import com.bonus.project.service.ContEntryExitService;
|
||||||
import com.bonus.project.service.FlowTaskService;
|
import com.bonus.project.service.FlowTaskService;
|
||||||
import com.bonus.system.api.RemoteFileService;
|
import com.bonus.system.api.RemoteFileService;
|
||||||
import com.bonus.system.api.domain.SysFile;
|
import com.bonus.system.api.domain.SysFile;
|
||||||
|
import com.bonus.system.api.model.LoginUser;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
@ -65,6 +67,10 @@ public class ContEntryExitServiceImpl implements ContEntryExitService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ContEntryExit> listCommencementApproval(ContEntryExit bean) {
|
public List<ContEntryExit> listCommencementApproval(ContEntryExit bean) {
|
||||||
|
LoginUser us=SecurityUtils.getLoginUser();
|
||||||
|
if(us!=null &&us.getSysUser()!=null){
|
||||||
|
bean.setContUuid(us.getSysUser().getParentUuid());
|
||||||
|
}
|
||||||
List<ContEntryExit> list = ceMapper.listCommencementApproval(bean);
|
List<ContEntryExit> list = ceMapper.listCommencementApproval(bean);
|
||||||
RequestEntity entity = new RequestEntity();
|
RequestEntity entity = new RequestEntity();
|
||||||
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ public class ProjectServiceImpl implements ProjectService {
|
||||||
for (BaseBean bean : list) {
|
for (BaseBean bean : list) {
|
||||||
//获取处理后的短信内容
|
//获取处理后的短信内容
|
||||||
String content = getMessage(bean);
|
String content = getMessage(bean);
|
||||||
// ShortMessageUtils.sendShortMessage(bean.getUuid(), content);
|
// ShortMessageUtils.sendShortMessage(bean.getUuid(), content);
|
||||||
MsgBean b = new MsgBean();
|
MsgBean b = new MsgBean();
|
||||||
b.setPhone(bean.getUuid());
|
b.setPhone(bean.getUuid());
|
||||||
b.setMsg(content);
|
b.setMsg(content);
|
||||||
|
|
|
||||||
|
|
@ -176,9 +176,7 @@ public class SubServiceImpl implements SubService {
|
||||||
bean.setUserList(stringList);
|
bean.setUserList(stringList);
|
||||||
PageUtils.startPage();
|
PageUtils.startPage();
|
||||||
List<SubPerson> list = mapper.enterPersonList(bean);
|
List<SubPerson> list = mapper.enterPersonList(bean);
|
||||||
|
|
||||||
System.err.println("stringList="+stringList);
|
System.err.println("stringList="+stringList);
|
||||||
// RequestEntity entity = new RequestEntity();
|
|
||||||
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
||||||
// 创建一个 GenericProcessor 实例 对审批流程数据进行处理
|
// 创建一个 GenericProcessor 实例 对审批流程数据进行处理
|
||||||
GenericProcessor processor = new GenericProcessor();
|
GenericProcessor processor = new GenericProcessor();
|
||||||
|
|
|
||||||
|
|
@ -420,12 +420,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
pcp.cons_user_id as id,
|
pcp.cons_user_id as id,
|
||||||
lcp.uuid
|
lcp.uuid
|
||||||
FROM pt_cons_person pcp
|
FROM pt_cons_person pcp
|
||||||
LEFT JOIN lk_cont_person lcp ON lcp.pro_id = #{proId} AND lcp.cons_persion_id = pcp.cons_user_id
|
LEFT JOIN lk_cont_person lcp ON lcp.pro_id = #{proId} AND lcp.cons_persion_id = pcp.cons_user_id
|
||||||
WHERE pcp.phone = #{phone} AND pcp.is_active = '1'
|
WHERE pcp.phone = #{phone} AND pcp.is_active = '1'
|
||||||
<if test="consUserId != null and consUserId != ''">
|
<if test="consUserId != null and consUserId != ''">
|
||||||
and pcp.cons_user_id != #{consUserId}
|
and pcp.cons_user_id != #{consUserId}
|
||||||
</if>
|
</if>
|
||||||
|
limit 1
|
||||||
</select>
|
</select>
|
||||||
<select id="checkUserTypeNameUnique" resultType="com.bonus.project.domain.AdmissionRequest">
|
<select id="checkUserTypeNameUnique" resultType="com.bonus.project.domain.AdmissionRequest">
|
||||||
SELECT user_id AS id
|
SELECT user_id AS id
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,9 @@
|
||||||
<if test="userType == '01' or userType == 01">
|
<if test="userType == '01' or userType == 01">
|
||||||
AND lpc.sup_uuid = #{supUuid}
|
AND lpc.sup_uuid = #{supUuid}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="userType == '02' or userType == 02">
|
||||||
|
AND pci.uuid = #{contUuid}
|
||||||
|
</if>
|
||||||
<if test="status != null and status != '' and status != 1 and status != '1' and status != '2' and status != 2 ">
|
<if test="status != null and status != '' and status != 1 and status != '1' and status != '2' and status != 2 ">
|
||||||
AND lpc.start_status = #{status}
|
AND lpc.start_status = #{status}
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue