提交代码

dev_xds
姜玉琦 2024-04-08 11:33:45 +08:00
parent be19c476b5
commit 963d86f209
8 changed files with 63 additions and 34 deletions

View File

@ -80,8 +80,7 @@ public class GlobalEventListener extends AbstractFlowableEngineEventListener {
log.info("任务流程审批完成...{}",event.getProcessInstanceId()); log.info("任务流程审批完成...{}",event.getProcessInstanceId());
super.processCompleted(event); super.processCompleted(event);
List<WxMpTemplateMessage> list = new ArrayList<>(); List<WxMpTemplateMessage> list = new ArrayList<>();
TaskEntity taskEntity = (TaskEntity)event.getEntity(); ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(event.getProcessInstanceId()).singleResult();
ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(taskEntity.getProcessInstanceId()).singleResult();
String startUserId = processInstance.getStartUserId(); String startUserId = processInstance.getStartUserId();
SysUser sysUser = sysUserMapper.selectUserById(Convert.toLong(startUserId)); SysUser sysUser = sysUserMapper.selectUserById(Convert.toLong(startUserId));
//模板数据 //模板数据

View File

@ -367,17 +367,6 @@ public class SysUserServiceImpl implements ISysUserService
@Override @Override
public int resetPwd(SysUser user) public int resetPwd(SysUser user)
{ {
List<Long> userIds = userMapper.selectUserByDept();
List<SysUserRole> sysUserRoleList = new ArrayList<>();
for(Long id:userIds){
SysUserRole sr = new SysUserRole();
sr.setUserId(id);
sr.setRoleId(48L);
sysUserRoleList.add(sr);
}
userRoleMapper.batchUserRole(sysUserRoleList);
return userMapper.updateUser(user); return userMapper.updateUser(user);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -1,5 +1,7 @@
<template> <template>
<div class="app-content"> <div class="app-content">
<div>
</div>
</div> </div>
</template> </template>
@ -8,50 +10,56 @@ export default {
name: "build", name: "build",
data() { data() {
return { return {
uId:null, uId: null,
show: true, uIdErrorShow: false,
dialogVisible: false, successVisible: false,
bindPhoneVo: {
openId: '',
phone: ''
}
}; };
}, },
watch: {}, watch: {},
created() { created() {
this.uId=this.getQueryString('userOpenId') || ''; this.uId = this.getQueryString("userOpenId") || "";
if (this.uId == "") {
} else {
this.wechatLogin(); this.wechatLogin();
}
}, },
methods: { methods: {
wechatLogin() { wechatLogin() {
// //
let openId = this.getQueryString('openId') || ''; let openId = this.getQueryString("openId") || "";
// token === '' && openId != '' // token === '' && openId != ''
if(openId != '') { if (openId != "") {
// //
console.log("dialogVisible===>",openId,this.uId); console.log("dialogVisible===>", openId, this.uId);
} else { } else {
// //
console.log("我要去登录了===>"); console.log("我要去登录了===>");
let _baseUrl = "https://szgc.jhncidg.com"; let _baseUrl = "https://szgc.jhncidg.com";
window.location = _baseUrl + '/jhapi/wxAuth/authorize?returnUrl=' + _baseUrl + "/#/wxAuth?uid="+this.uId window.location =
_baseUrl +
"/jhapi/wxAuth/authorize?returnUrl=" +
_baseUrl +
"/#/wxAuth?uid=" +
this.uId;
} }
}, },
saveBind() { saveBind() {
console.log("saveBind"); console.log("saveBind");
}, },
getQueryString (paramName) { getQueryString(paramName) {
if(window.location.href.indexOf('?') == -1) return ''; if (window.location.href.indexOf("?") == -1) return "";
let searchString = window.location.href.split('?')[1]; let searchString = window.location.href.split("?")[1];
let i, val, params = searchString.split("&"); let i,
for (i=0;i<params.length;i++) { val,
params = searchString.split("&");
for (i = 0; i < params.length; i++) {
val = params[i].split("="); val = params[i].split("=");
if (val[0] == paramName) { if (val[0] == paramName) {
return val[1]; return val[1];
} }
} }
return ''; return "";
} },
}, },
}; };
</script> </script>

View File

@ -3,6 +3,7 @@ package com.ruoyi.web.project.controller;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.StringUtils;
import com.yanzhu.jh.work.domain.WorkFile; import com.yanzhu.jh.work.domain.WorkFile;
import com.yanzhu.jh.work.service.IWorkFileService; import com.yanzhu.jh.work.service.IWorkFileService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -12,6 +13,8 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
@ -36,6 +39,9 @@ public class ProjectFilesController extends BaseController {
public TableDataInfo list(WorkFile workFile) public TableDataInfo list(WorkFile workFile)
{ {
startPage(); startPage();
if(StringUtils.isNotBlank(workFile.getRemark())){
workFile.setDeptIds(new ArrayList(Arrays.asList(workFile.getRemark().split(","))));
}
List<WorkFile> list = workFileService.selectWorkFileList(workFile); List<WorkFile> list = workFileService.selectWorkFileList(workFile);
return getDataTable(list); return getDataTable(list);
} }
@ -48,6 +54,9 @@ public class ProjectFilesController extends BaseController {
@GetMapping("/findCountByType") @GetMapping("/findCountByType")
public AjaxResult findCountByType(WorkFile workFile){ public AjaxResult findCountByType(WorkFile workFile){
clearPage(); clearPage();
if(StringUtils.isNotBlank(workFile.getRemark())){
workFile.setDeptIds(new ArrayList(Arrays.asList(workFile.getRemark().split(","))));
}
return success(workFileService.findCountByType(workFile)); return success(workFileService.findCountByType(workFile));
} }

View File

@ -57,6 +57,8 @@ public class WorkFile extends BaseEntity
@Excel(name = "阅读次数") @Excel(name = "阅读次数")
private Long readNum; private Long readNum;
private List<Long> deptIds;
//文件列表 //文件列表
private Long deptId; private Long deptId;
@ -179,6 +181,14 @@ public class WorkFile extends BaseEntity
this.fileList = fileList; this.fileList = fileList;
} }
public List<Long> getDeptIds() {
return deptIds;
}
public void setDeptIds(List<Long> deptIds) {
this.deptIds = deptIds;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -38,6 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null and deptId>0"> and dept_id = #{deptId}</if> <if test="deptId != null and deptId>0"> and dept_id = #{deptId}</if>
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
<if test="params.beginMarksTime != null and params.beginMarksTime != '' and params.endMarksTime != null and params.endMarksTime != ''"> and create_time between #{params.beginMarksTime} and #{params.endMarksTime}</if> <if test="params.beginMarksTime != null and params.beginMarksTime != '' and params.endMarksTime != null and params.endMarksTime != ''"> and create_time between #{params.beginMarksTime} and #{params.endMarksTime}</if>
<if test="deptIds !=null and deptIds.size()>0">
and (dept_id is null or dept_id in
<foreach collection="deptIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
)
</if>
</where> </where>
order by create_time desc order by create_time desc
</select> </select>
@ -49,6 +56,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null and deptId>0"> and dept_id = #{deptId}</if> <if test="deptId != null and deptId>0"> and dept_id = #{deptId}</if>
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if> <if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
<if test="params.beginMarksTime != null and params.beginMarksTime != '' and params.endMarksTime != null and params.endMarksTime != ''"> and create_time between #{params.beginMarksTime} and #{params.endMarksTime}</if> <if test="params.beginMarksTime != null and params.beginMarksTime != '' and params.endMarksTime != null and params.endMarksTime != ''"> and create_time between #{params.beginMarksTime} and #{params.endMarksTime}</if>
<if test="deptIds !=null and deptIds.size()>0">
and (dept_id is null or dept_id in
<foreach collection="deptIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
)
</if>
</where> </where>
group by file_belong group by file_belong
</select> </select>