[修改] 修改 转办 与审批历史
This commit is contained in:
@@ -13,6 +13,7 @@ import com.adc.da.sys.vo.UserImportVO;
|
|||||||
import com.adc.da.sys.vo.UserVO;
|
import com.adc.da.sys.vo.UserVO;
|
||||||
import com.adc.da.util.http.ResponseMessage;
|
import com.adc.da.util.http.ResponseMessage;
|
||||||
import com.adc.da.util.http.Result;
|
import com.adc.da.util.http.Result;
|
||||||
|
import com.adc.da.util.utils.CollectionUtils;
|
||||||
import com.adc.da.util.utils.FileUtil;
|
import com.adc.da.util.utils.FileUtil;
|
||||||
import com.adc.da.util.utils.StringUtils;
|
import com.adc.da.util.utils.StringUtils;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
@@ -36,6 +37,7 @@ import java.io.InputStream;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -224,7 +226,10 @@ public class UserEOController extends BaseController<UserEO> {
|
|||||||
public ResponseMessage getOwnLeader(String userId){
|
public ResponseMessage getOwnLeader(String userId){
|
||||||
UserVO userEoById = userEOService.getUserEoById(userId);
|
UserVO userEoById = userEOService.getUserEoById(userId);
|
||||||
List<OrgEO> orgEOList = userEoById.getOrgEOList();
|
List<OrgEO> orgEOList = userEoById.getOrgEOList();
|
||||||
List<UserEO> leaderList = userEOService.getOwnLeader(orgEOList);
|
List<UserEO> leaderList = new ArrayList<>();
|
||||||
|
if (CollectionUtils.isNotEmpty(orgEOList)){
|
||||||
|
leaderList = userEOService.getOwnLeader(orgEOList);
|
||||||
|
}
|
||||||
return Result.success(leaderList);
|
return Result.success(leaderList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public interface UserEODao extends BaseMapper<UserEO> {
|
|||||||
|
|
||||||
UserVO getUserEoById(@Param("usid") String usid);
|
UserVO getUserEoById(@Param("usid") String usid);
|
||||||
|
|
||||||
UserEO selectUserByIdNodel(String userId);
|
UserVO selectUserByIdNodel(String userId);
|
||||||
|
|
||||||
List<UserEO> getOwnLeader(@Param("Vo") List<OrgEO> orgEOList);
|
List<UserEO> getOwnLeader(@Param("Vo") List<OrgEO> orgEOList);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ public class UserEOServiceImpl implements IUserEoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UserEO getUserByIdNodel(String userId) {
|
public UserVO getUserByIdNodel(String userId) {
|
||||||
return dao.selectUserByIdNodel(userId);
|
return dao.selectUserByIdNodel(userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public interface IUserEoService {
|
|||||||
* @param userId
|
* @param userId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
UserEO getUserByIdNodel(String userId);
|
UserVO getUserByIdNodel(String userId);
|
||||||
|
|
||||||
List<UserEO> getOwnLeader(List<OrgEO> orgEOList);
|
List<UserEO> getOwnLeader(List<OrgEO> orgEOList);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -207,7 +207,7 @@
|
|||||||
where users.del_flag != 1
|
where users.del_flag != 1
|
||||||
and users.usid=#{usid}
|
and users.usid=#{usid}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectUserByIdNodel" resultType="com.adc.da.sys.entity.UserEO">
|
<select id="selectUserByIdNodel" resultMap="UserDetailMap">
|
||||||
select
|
select
|
||||||
users.usid,
|
users.usid,
|
||||||
users.usname,
|
users.usname,
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
where users.usid=#{usid}
|
where users.usid=#{usid}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUserByIdListNodel" resultType="com.adc.da.sys.vo.UserVO">
|
<select id="getUserByIdListNodel" resultMap="UserDetailMap">
|
||||||
|
|
||||||
select
|
select
|
||||||
users.usid,
|
users.usid,
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -207,7 +207,7 @@
|
|||||||
where users.del_flag != 1
|
where users.del_flag != 1
|
||||||
and users.usid=#{usid}
|
and users.usid=#{usid}
|
||||||
</select>
|
</select>
|
||||||
<select id="selectUserByIdNodel" resultType="com.adc.da.sys.entity.UserEO">
|
<select id="selectUserByIdNodel" resultMap="UserDetailMap">
|
||||||
select
|
select
|
||||||
users.usid,
|
users.usid,
|
||||||
users.usname,
|
users.usname,
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
where users.usid=#{usid}
|
where users.usid=#{usid}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getUserByIdListNodel" resultType="com.adc.da.sys.vo.UserVO">
|
<select id="getUserByIdListNodel" resultMap="UserDetailMap">
|
||||||
|
|
||||||
select
|
select
|
||||||
users.usid,
|
users.usid,
|
||||||
|
|||||||
+6
-3
@@ -87,7 +87,7 @@ public class TaskController {
|
|||||||
BusProcessNew processNew = iBusProcessNewService.getOne(processNewQueryWrapper);
|
BusProcessNew processNew = iBusProcessNewService.getOne(processNewQueryWrapper);
|
||||||
|
|
||||||
if(processNew!=null){
|
if(processNew!=null){
|
||||||
UserEO assignee = userEoService.getUserByIdNodel(processNew.getUserId());
|
UserVO assignee = userEoService.getUserByIdNodel(processNew.getUserId());
|
||||||
if(assignee != null){
|
if(assignee != null){
|
||||||
historicTaskInstance.put("assignee", assignee.getUsname());
|
historicTaskInstance.put("assignee", assignee.getUsname());
|
||||||
historicTaskInstance.put("assigneeId", assignee.getUsid());
|
historicTaskInstance.put("assigneeId", assignee.getUsid());
|
||||||
@@ -101,7 +101,7 @@ public class TaskController {
|
|||||||
historicTaskInstance.put("assignee", assignee.getUsname());
|
historicTaskInstance.put("assignee", assignee.getUsname());
|
||||||
historicTaskInstance.put("assigneeId", assignee.getUsid());
|
historicTaskInstance.put("assigneeId", assignee.getUsid());
|
||||||
if(assignee.getOrgEOList().size()>0){
|
if(assignee.getOrgEOList().size()>0){
|
||||||
historicTaskInstance.put("orgName",assignee.getOrgEOList().get(0));
|
historicTaskInstance.put("orgName",assignee.getOrgEOList().get(0).getOrgName());
|
||||||
}
|
}
|
||||||
QueryWrapper queryWrapper2 = new QueryWrapper();
|
QueryWrapper queryWrapper2 = new QueryWrapper();
|
||||||
queryWrapper2.eq("TASK_ID",historicTaskInstance.get("id"));
|
queryWrapper2.eq("TASK_ID",historicTaskInstance.get("id"));
|
||||||
@@ -115,8 +115,11 @@ public class TaskController {
|
|||||||
HashMap<String, Object> map = new HashMap<>();
|
HashMap<String, Object> map = new HashMap<>();
|
||||||
UserEO assigneenActual = userEoService.getUserById(busProcessEntrust.getUserId());
|
UserEO assigneenActual = userEoService.getUserById(busProcessEntrust.getUserId());
|
||||||
String consigner = assigneenActual.getUsname();
|
String consigner = assigneenActual.getUsname();
|
||||||
UserEO userById = userEoService.getUserById(busProcessEntrust.getEnUserId());
|
UserVO userById = userEoService.getUserByIdNodel(busProcessEntrust.getEnUserId());
|
||||||
String enUserName = userById.getUsname();
|
String enUserName = userById.getUsname();
|
||||||
|
if(userById.getOrgEOList().size()>0){
|
||||||
|
map.put("orgName",userById.getOrgEOList().get(0).getOrgName());
|
||||||
|
}
|
||||||
map.put("assignee", enUserName+"(" + consigner + " 委托)");
|
map.put("assignee", enUserName+"(" + consigner + " 委托)");
|
||||||
map.put("assigneeId", busProcessEntrust.getEnUserId());
|
map.put("assigneeId", busProcessEntrust.getEnUserId());
|
||||||
map.put("prcType",one.getPrcType());
|
map.put("prcType",one.getPrcType());
|
||||||
|
|||||||
+8
-4
@@ -283,10 +283,14 @@ public class TodoTaskController {
|
|||||||
@ApiImplicitParams({@ApiImplicitParam(name = "taskId", value = "任务id"),
|
@ApiImplicitParams({@ApiImplicitParam(name = "taskId", value = "任务id"),
|
||||||
@ApiImplicitParam(name = "assignee", value = "被改派人员"), @ApiImplicitParam(name = "userId", value = "改派人员"),
|
@ApiImplicitParam(name = "assignee", value = "被改派人员"), @ApiImplicitParam(name = "userId", value = "改派人员"),
|
||||||
@ApiImplicitParam(name = "pId", value = "流程实例ID")})
|
@ApiImplicitParam(name = "pId", value = "流程实例ID")})
|
||||||
@GetMapping("/changeAssigneeNew")
|
@PostMapping("/changeAssigneeNew")
|
||||||
public Wrapper<String> changeAssigneeNew(String taskId, String assignee, String userId, String pId,
|
public Wrapper<String> changeAssigneeNew(@RequestBody BusProcessEntrust busProcessEntrustEO) {
|
||||||
@RequestParam(required = false,value = "replaceMap")String replaceMap,
|
String assignee = busProcessEntrustEO.getAssignee();
|
||||||
String approvalOpinion) {
|
String taskId = busProcessEntrustEO.getTaskId();
|
||||||
|
String pId = busProcessEntrustEO.getPrcId();
|
||||||
|
String userId = busProcessEntrustEO.getUserId();
|
||||||
|
String approvalOpinion = busProcessEntrustEO.getApprovalOpinion();
|
||||||
|
String replaceMap = busProcessEntrustEO.getReplaceMap();
|
||||||
|
|
||||||
List<String> list = Arrays.asList(taskId.split(","));
|
List<String> list = Arrays.asList(taskId.split(","));
|
||||||
for (String str : list) {
|
for (String str : list) {
|
||||||
|
|||||||
+6
@@ -67,4 +67,10 @@ public class BusProcessEntrust implements Serializable {
|
|||||||
@TableField("APPROVAL_OPINION")
|
@TableField("APPROVAL_OPINION")
|
||||||
private String approvalOpinion;
|
private String approvalOpinion;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String replaceMap;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String assignee;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user