Merge branch 'huacheng_test' into haucheng_panzhihua
| | |
| | | guideEvolveEntity.setCreateTime(LocalDateTime.now()); |
| | | guideEvolveEntity.setUpdateTime(LocalDateTime.now()); |
| | | guideEvolveEntity.setState("13"); |
| | | guideEvolveEntity.setDepartmentalId(sysUser.getDepartmentId()); |
| | | guideEvolveEntity.setToUserId(sysUser.getUserId()+""); |
| | | guideEvolveEntity.setFromDepartmentalId(sysUser.getDepartmentId()); |
| | | guideEvolveEntity.setFromUserId(sysUser.getUserId()+""); |
| | | guideEvolveEntity.setGuideId(entity.getId().toString()); |
| | | int i = iGuideRepairOrderService.updateConfig(entity); |
| | | if (i>0) |
| | |
| | | @GetMapping("/getList") |
| | | public TableDataInfo selectConfigList() |
| | | { |
| | | return getDataTable(iOrganizationChartService.selectConfigList("","")); |
| | | return getDataTable(iOrganizationChartService.selectConfigList("","" ,null)); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "导办事物列表(不分页)",response = TransactionEvent.class) |
| | | @GetMapping("/selectList") |
| | | public TableDataInfo selectList() |
| | | public TableDataInfo selectList(@RequestParam(value = "keyWord",required = false) String keyWord) |
| | | { |
| | | return getDataTable(iTransactionEventService.selectList()); |
| | | return getDataTable(iTransactionEventService.selectList(keyWord)); |
| | | } |
| | | |
| | | |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IGuideRepairOrderService; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.service.ISysUserService; |
| | | import com.dg.core.util.PermissionUtil; |
| | | import com.dg.core.util.Snowflake; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Autowired |
| | | IGuideRepairOrderService iGuideRepairOrderService; |
| | | |
| | | @Autowired |
| | | IOrganizationChartService iOrganizationChartService; |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * |
| | |
| | | @Authorization |
| | | public TableDataInfo selectConfigList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "keyword",required = false) String keyword) |
| | | @RequestParam(value = "keyword",required = false) String keyword, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Assert.notNull(pageNum, "pageNum can not be empty"); |
| | | Assert.notNull(pageSize, "pageSize can not be empty"); |
| | | Page<SysUser> pageParam = new Page<>(pageNum,pageSize); |
| | | List<SysUser> list = IUserService.selectConfigList(pageParam,pageSize,"2",keyword); |
| | | List<String> ids= PermissionUtil.getPermission(sysUser,iOrganizationChartService); |
| | | List<SysUser> list = IUserService.selectConfigList(pageParam,pageSize,"2",keyword,ids); |
| | | |
| | | int num=IUserService.selectNum("2",keyword); |
| | | int num=IUserService.selectNum("2",keyword,ids); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | user.setPhonenumber(config.getPhonenumber()); |
| | | user.setLoginName(config.getLoginName()); |
| | | user.setMasterIds(config.getMasterIds()); |
| | | user.setRoleIds(2+""); |
| | | user.setRoleIds("2"); |
| | | user.setUserType("2"); |
| | | user.setStatus(config.getStatus()); |
| | | user.setUpdateTime(LocalDateTime.now()); |
| | |
| | | { |
| | | return error("该人员有工单未处理完不能删除"); |
| | | } |
| | | |
| | | return toAjax(IUserService.deleteConfigById(userId)); |
| | | SysUser user=IUserService.selectData(userId,null,null); |
| | | user.setUserType("3"); |
| | | user.setRoleIds("3"); |
| | | return toAjax(IUserService.updateConfig(user)); |
| | | } |
| | | |
| | | /** |
| | |
| | | public ResultData queryList(@RequestParam(value = "keyWord",required = false) String keyWord){ |
| | | return ResultData.success(IUserService.queryList(2,keyWord)); |
| | | } |
| | | |
| | | } |
| | |
| | | int num=0; |
| | | if(ids!=null&&ids.size()>0) |
| | | { |
| | | num=iGuideRepairOrderService.countStatisticsNum(null,ids,null,null,null,null,null,null); |
| | | num=homeStatisticsService.rangeStatistics(ids); |
| | | } |
| | | range.setNum(num+""); |
| | | rangeStatistics.add(range); |
| | |
| | | import com.dg.core.db.gen.entity.TransactionEvent; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.service.ITransactionEventService; |
| | | import com.dg.core.util.PermissionUtil; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @GetMapping("/getList") |
| | | public TableDataInfo selectConfigList() |
| | | { |
| | | return getDataTable(iOrganizationChartService.selectConfigList("","")); |
| | | return getDataTable(iOrganizationChartService.selectConfigList("","",null)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询机构列表(权限) |
| | | */ |
| | | @ApiOperation(value = "查询机构列表(权限 选择用 ) ",response = OrganizationChartEntity.class) |
| | | @GetMapping("/selectJurisdiction") |
| | | @Authorization |
| | | public TableDataInfo selectJurisdiction(@CurrentUser SysUser sysUser) |
| | | { |
| | | return getDataTable(iOrganizationChartService.selectConfigList(sysUser.getDepartmentId(),"",null)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Authorization |
| | | public TableDataInfo queryList(@RequestParam(value = "pageNum",required = false) Integer pageNum, |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "organizationName",required = false)String organizationName){ |
| | | @RequestParam(value = "organizationName",required = false)String organizationName, |
| | | @CurrentUser SysUser sysUser){ |
| | | Assert.notNull(pageNum, "pageNum can not be empty"); |
| | | Assert.notNull(pageSize, "pageSize can not be empty"); |
| | | Page<OrganizationChartEntity> pageParam = new Page<>(pageNum,pageSize); |
| | | return getDataTable(iOrganizationChartService.queryList(pageParam,pageSize,organizationName),iOrganizationChartService.countList(organizationName)); |
| | | List<String> ids= PermissionUtil.getPermission(sysUser,iOrganizationChartService); |
| | | return getDataTable(iOrganizationChartService.queryList(pageParam,pageSize,organizationName,ids), |
| | | iOrganizationChartService.countList(organizationName,ids)); |
| | | } |
| | | |
| | | |
| | |
| | | public TableDataInfo getOrganizations(@RequestParam(value = "department",required = false) String departmentId) |
| | | { |
| | | List<OrganizationChartEntity> ids=new ArrayList<>(); |
| | | List<OrganizationChartEntity> lists = iOrganizationChartService.selectParentList(departmentId,""); |
| | | List<OrganizationChartEntity> lists=null; |
| | | if(StringUtils.isEmpty(departmentId)) |
| | | { |
| | | lists= iOrganizationChartService.selectParentList(null,"1"); |
| | | |
| | | } |
| | | else |
| | | { |
| | | lists= iOrganizationChartService.selectParentList(departmentId,null); |
| | | } |
| | | |
| | | if(lists.size()<1) |
| | | { |
| | | lists.add(iOrganizationChartService.selectConfigById(departmentId)); |
| | |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | if(!StringUtils.isEmpty(departmentId)) |
| | | { |
| | | ids.add(iOrganizationChartService.selectConfigById(departmentId)); |
| | | } |
| | | |
| | | return getDataTable(ids); |
| | | } |
| | | |
| | |
| | | Assert.notNull(pageNum, "pageNum 不能为空"); |
| | | Assert.notNull(pageSize, "pageSize 不能为空"); |
| | | Page<TransactionEvent> pageParam = new Page<>(pageNum,pageSize); |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | // List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | List<TransactionEvent> list = iTransactionEventService.selectConfigList(pageParam,pageSize,keyword, |
| | | classifyGrade,ids); |
| | | int num=iTransactionEventService.countNum(keyword,classifyGrade,ids); |
| | | classifyGrade,null); |
| | | int num=iTransactionEventService.countNum(keyword,classifyGrade,null); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "导办事物列表(不分页)",response = TransactionEvent.class) |
| | | @GetMapping("/selectList") |
| | | public TableDataInfo selectList() |
| | | public TableDataInfo selectList(@RequestParam(value = "keyWord",required = false) String keyWord) |
| | | { |
| | | return getDataTable(iTransactionEventService.selectList()); |
| | | return getDataTable(iTransactionEventService.selectList(keyWord)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation(value = "办事指南复制",response = ResultData.class) |
| | | @GetMapping("/copy") |
| | | public ResultData copy(@RequestParam("Id") String Id) |
| | | @Authorization |
| | | public ResultData copy(@RequestParam("Id") String Id,@CurrentUser SysUser sysUser) |
| | | { |
| | | if(StringUtils.isEmpty(Id)) |
| | | { |
| | |
| | | { |
| | | return ResultData.error("复制项不存在"); |
| | | } |
| | | |
| | | transactionEvent.setDepartmentId(sysUser.getDepartmentId()); |
| | | transactionEvent.setMatterName(transactionEvent.getMatterName()+"(副本)"); |
| | | |
| | | transactionEvent.setId(null); |
| | |
| | | Assert.notNull(pageNum, "pageNum can not be empty"); |
| | | Assert.notNull(pageSize, "pageSize can not be empty"); |
| | | Page<SysUser> pageParam = new Page<>(pageNum,pageSize); |
| | | List<SysUser> list = IUserService.selectConfigList(pageParam,pageSize,"3",keyword); |
| | | List<SysUser> list = IUserService.selectConfigList(pageParam,pageSize,"3",keyword,null); |
| | | |
| | | int num=IUserService.selectNum("3",keyword); |
| | | int num=IUserService.selectNum("3",keyword,null); |
| | | return getDataTable(list,num); |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | * 修改时间 |
| | | */ |
| | | @ApiModelProperty("修改时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty("创建时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | |
| | | List<String> countId(String district); |
| | | |
| | | |
| | | int rangeStatistics(List<String> ids); |
| | | |
| | | |
| | | /** |
| | | * 首页统计用 |
| | | * @return |
| | |
| | | * 查询机构列表 |
| | | */ |
| | | public List<OrganizationChartEntity> selectConfigList(@Param("parentId") String parentId, |
| | | @Param("grade") String grade); |
| | | @Param("grade") String grade, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 新增机构 |
| | |
| | | /** |
| | | * 查询机构列表(分页) |
| | | */ |
| | | List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName); |
| | | List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, |
| | | @Param("organizationName") String organizationName,@Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | | * 统计数量(部门应用) |
| | | */ |
| | | int countList(String organizationName); |
| | | int countList(@Param("organizationName") String organizationName,@Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state, |
| | | @Param("userType") String userType, |
| | | @Param("userName") String userName); |
| | | @Param("userName") String userName, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | |
| | | |
| | |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | public int selectNum(@Param("userType") String userType,@Param("userName") String userName); |
| | | public int selectNum(@Param("userType") String userType, |
| | | @Param("userName") String userName, |
| | | @Param("ids") List<String> ids); |
| | | |
| | | /** |
| | | * 根据部门id及分类id获取导办用户 |
| | |
| | | */ |
| | | int reversionRate(String state,String isTimeout); |
| | | |
| | | |
| | | int rangeStatistics(List<String> ids); |
| | | |
| | | } |
| | |
| | | /** |
| | | * 查询机构列表 |
| | | */ |
| | | public List<OrganizationChartEntity> selectConfigList(String parentId,String grade); |
| | | public List<OrganizationChartEntity> selectConfigList(String parentId,String grade,List<String> ids); |
| | | |
| | | /** |
| | | * 新增机构 |
| | |
| | | /** |
| | | * 查询机构列表(分页) |
| | | */ |
| | | List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName); |
| | | List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName,List<String> ids); |
| | | |
| | | |
| | | /** |
| | | * 统计数量(部门应用) |
| | | */ |
| | | int countList(String organizationName); |
| | | int countList(String organizationName,List<String> ids); |
| | | |
| | | /** |
| | | * 获取部门下子部门的全部id |
| | |
| | | * |
| | | * @return 参数配置信息 |
| | | */ |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,String userType,String userName); |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,String userType, |
| | | String userName,List<String> ids); |
| | | |
| | | |
| | | SysUser selectData(String userId,String phonenumber,String loginName); |
| | |
| | | * |
| | | * @return 结果 |
| | | */ |
| | | public int selectNum(String userType,String userName); |
| | | public int selectNum(String userType,String userName,List<String> ids); |
| | | |
| | | /** |
| | | * 发送验证码(如果没有该用户则新建用户) |
| | |
| | | * 导办事物列表(不分页) |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> selectList(); |
| | | List<TransactionEvent> selectList(String keyWord); |
| | | |
| | | /** |
| | | * 智能咨询 |
| | |
| | | DateTime dateTime = td.nextWeekDay(dateTimeUser); |
| | | Calendar calendar = dateTime.toCalendar(); |
| | | LocalDateTime localDateTime = LocalDateTime.of(calendar.get(Calendar.YEAR), |
| | | calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE), |
| | | calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DATE), |
| | | 9 + automessageSysSettings.getTimeoutNotificationNum(), 0);//设置时间为下一个工作日时间的9点+设置超时时间 |
| | | guideRepairOrder.setTimeoutTime(localDateTime); |
| | | } |
| | |
| | | DateTime dateTime = td.nextWeekDay(dateTimeUser); |
| | | Calendar calendar = dateTime.toCalendar(); |
| | | LocalDateTime localDateTime = LocalDateTime.of(calendar.get(Calendar.YEAR), |
| | | calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE), |
| | | calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DATE), |
| | | 9 + automessageSysSettings.getTimeoutNotificationNum(), 0);//设置时间为下一个工作日时间的9点+设置超时时间 |
| | | guideRepairOrder.setTimeoutTime(localDateTime); |
| | | } |
| | |
| | | return baseMapper.reversionRate(state,isTimeout); |
| | | } |
| | | |
| | | @Override |
| | | public int rangeStatistics(List<String> ids) { |
| | | return baseMapper.rangeStatistics(ids); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.db.gen.mapper.OrganizationChartMapper; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | { |
| | | |
| | | @Override |
| | | public List<OrganizationChartEntity> selectConfigList(String parentId,String grade) |
| | | public List<OrganizationChartEntity> selectConfigList(String parentId,String grade,List<String> ids) |
| | | { |
| | | List<OrganizationChartEntity> ocList=baseMapper.selectConfigList("","1"); |
| | | List<OrganizationChartEntity> ocList=baseMapper.selectConfigList(parentId,"1",ids); |
| | | |
| | | if(ocList==null || ocList.size()<1) |
| | | { |
| | | List<String> id=new ArrayList<>(); |
| | | id.add(parentId); |
| | | ocList=baseMapper.selectConfigList(null,null,id); |
| | | } |
| | | |
| | | for (OrganizationChartEntity entity:ocList) |
| | | { |
| | | entity.setChild(baseMapper.selectConfigList(entity.getId()+"","")); |
| | | entity.setChild(baseMapper.selectConfigList(entity.getId()+"","",null)); |
| | | |
| | | if (entity.getChild()!=null) |
| | | { |
| | |
| | | |
| | | |
| | | public List<OrganizationChartEntity> selectConfigList(String parentsId) { |
| | | List<OrganizationChartEntity> list =baseMapper.selectConfigList(parentsId,""); |
| | | List<OrganizationChartEntity> list =baseMapper.selectConfigList(parentsId,"",null); |
| | | for (OrganizationChartEntity sysStreet:list) { |
| | | sysStreet.setChild(baseMapper.selectConfigList(sysStreet.getId().toString(),"")); |
| | | sysStreet.setChild(baseMapper.selectConfigList(sysStreet.getId().toString(),"",null)); |
| | | if (sysStreet.getChild()!=null) |
| | | { |
| | | sysStreet.setChild(this.selectConfigList(sysStreet.getId().toString())); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, String organizationName) { |
| | | return baseMapper.queryList(page,state,organizationName); |
| | | public List<OrganizationChartEntity> queryList(IPage<OrganizationChartEntity> page, Integer state, |
| | | String organizationName,List<String> ids) { |
| | | return baseMapper.queryList(page,state,organizationName,ids); |
| | | } |
| | | |
| | | @Override |
| | | public int countList(String organizationName) { |
| | | return baseMapper.countList(organizationName); |
| | | public int countList(String organizationName,List<String> ids) { |
| | | return baseMapper.countList(organizationName,ids); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<OrganizationChartEntity> selectParentList(String parentId, String grade) { |
| | | return baseMapper.selectConfigList(parentId,grade); |
| | | return baseMapper.selectConfigList(parentId,grade,null); |
| | | } |
| | | |
| | | /** |
| | |
| | | public List<String> getIds(String id) |
| | | { |
| | | List<String> ids=new ArrayList<>(); |
| | | List<OrganizationChartEntity> lists = baseMapper.selectConfigList(id,""); |
| | | List<OrganizationChartEntity> lists = baseMapper.selectConfigList(id,"",null); |
| | | if(lists.size()<1) |
| | | { |
| | | lists.add(baseMapper.selectConfigById(id)); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,String userType,String userName) { |
| | | return baseMapper.selectConfigList(page, state,userType,userName); |
| | | public List<SysUser> selectConfigList(IPage<SysUser> page, Integer state,String userType,String userName,List<String> ids) { |
| | | return baseMapper.selectConfigList(page, state,userType,userName,ids); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int selectNum(String userType,String userName) { |
| | | return baseMapper.selectNum(userType,userName); |
| | | public int selectNum(String userType,String userName,List<String> ids) { |
| | | return baseMapper.selectNum(userType,userName,ids); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<TransactionEvent> selectList() { |
| | | public List<TransactionEvent> selectList(String keyWord) { |
| | | if (keyWord!=null&&keyWord!=""){ |
| | | return baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda().like(TransactionEvent::getMatterName,keyWord)); |
| | | } |
| | | else { |
| | | return baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda()); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | public static List<String> getPermission(SysUser sysUser,IOrganizationChartService iOrganizationChartService) |
| | | { |
| | | if (StringUtils.equals("3", sysUser.getRoleIds())) { |
| | | if (StringUtils.equals("3", sysUser.getUserType())) { |
| | | if (StringUtils.isEmpty(sysUser.getDataPermission())) { |
| | | return null; |
| | | } |
| | |
| | | return ids; |
| | | } |
| | | } |
| | | else if(StringUtils.equals("2", sysUser.getRoleIds())) |
| | | else if(StringUtils.equals("2", sysUser.getUserType())) |
| | | { |
| | | //导办人员 |
| | | List<String> ids=iOrganizationChartService.getIds(sysUser.getDepartmentId()); |
| | | return ids; |
| | | } |
| | | else if(StringUtils.equals("1", sysUser.getRoleIds())) |
| | | else if(StringUtils.equals("1", sysUser.getUserType())) |
| | | { |
| | | //管理员 |
| | | List<String> ids=iOrganizationChartService.getIds(""); |
| | |
| | | #??????????,??????????????????????????????????? |
| | | |
| | | #?????? |
| | | #aliyun.TemplateCodeOvertime=SMS_254460011 |
| | | aliyun.TemplateCodeOvertime=SMS_254460011 |
| | | #?????? |
| | | aliyun.TemplateCodeOvertime=SMS_254460012 |
| | | #aliyun.TemplateCodeOvertime=SMS_254460012 |
| | | |
| | | #?????? |
| | | #aliyun.TemplateCodeComplete=SMS_254875101 |
| | | aliyun.TemplateCodeComplete=SMS_254875101 |
| | | #?????? |
| | | aliyun.TemplateCodeComplete=SMS_254875102 |
| | | #aliyun.TemplateCodeComplete=SMS_254875102 |
| | | |
| | | #?????? |
| | | #aliyun.TemplateCodeSubmit=SMS_254880764 |
| | | aliyun.TemplateCodeSubmit=SMS_254880764 |
| | | #?????? |
| | | aliyun.TemplateCodeSubmit=SMS_254880763 |
| | | #aliyun.TemplateCodeSubmit=SMS_254880763 |
| | | |
| | | |
| | | |
| | |
| | | spring.mvc.pathmatch.matching-strategy=ant_path_matcher |
| | | |
| | | |
| | | spring.servlet.multipart.max-file-size=20MB |
| | | spring.servlet.multipart.max-request-size=50MB |
| | | spring.servlet.multipart.max-file-size=100MB |
| | | spring.servlet.multipart.max-request-size=150MB |
| | | |
| | | |
| | | |
| | |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND (matter_name like concat('%', #{matterName}, '%')) or |
| | | ( classify_id in ( SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%') ) ) |
| | | or (classify_id in (SELECT id FROM automessage_classify_administration WHERE automessage_classify_administration.parent_id= |
| | | or (classify_id in (SELECT id FROM automessage_classify_administration WHERE automessage_classify_administration.parent_id in |
| | | (SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%'))) ) |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | |
| | | <if test="matterName != null and matterName != ''"> |
| | | AND (matter_name like concat('%', #{matterName}, '%')) or |
| | | ( classify_id in ( SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%') ) ) |
| | | or (classify_id in (SELECT id FROM automessage_classify_administration WHERE automessage_classify_administration.parent_id= |
| | | or (classify_id in (SELECT id FROM automessage_classify_administration WHERE automessage_classify_administration.parent_id in |
| | | (SELECT id FROM automessage_classify_administration WHERE classify_name like concat('%', #{matterName}, '%'))) ) |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | |
| | | |
| | | |
| | | |
| | | <!-- 首页统计 区域统计 勿动 --> |
| | | <select id="rangeStatistics" parameterType="string" resultType="integer"> |
| | | select count(id) from automessage_guide_repair_order |
| | | <where> |
| | | <if test="ids != null"> |
| | | and guide_department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |
| | |
| | | <if test="organizationName != null and organizationName != ''"> |
| | | AND organization_name like concat('%', #{organizationName}, '%') |
| | | </if> |
| | | <if test="ids != null"> |
| | | and id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <where> |
| | | <if test="organizationName != null and organizationName != ''"> |
| | | AND organization_name like concat('%', #{organizationName}, '%') |
| | | </if> |
| | | <if test="ids != null"> |
| | | and id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="parentId != null and parentId != ''"> |
| | | AND parent_id=#{parentId} |
| | | </if> |
| | | |
| | | <if test="grade != null and grade != ''"> |
| | | AND grade=#{grade} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="userType != null and userType != ''"> |
| | | AND user_type=#{userType} |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="userType != null and userType != ''"> |
| | | AND user_type=#{userType} |
| | | </if> |
| | | |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | |
| | | Long communityId = this.getCommunityId(); |
| | | comActDynVO.setCommunityId(communityId); |
| | | Integer category = comActDynVO.getCategory(); |
| | | log.info("当前登录的社区id"+communityId); |
| | | if (isNull(category)) { |
| | | comActDynVO.setCategory(1); |
| | | } |
| | |
| | | comEvent.setSolve(0); |
| | | comEvent.setDistribution(0); |
| | | //comEvent.setChangeExpert(0); |
| | | comEvent.setArchive(0); |
| | | //comEvent.setArchive(0); |
| | | comEvent.setConciliation(0); |
| | | } |
| | | else if (comEvent.getEventProcessStatus().equals(6) && comEvent.getEventSucceed().equals(2)){ |
| | | //调解完成,可以归档,查看 |
| | |
| | | ComSanshuoExpert expert = comSanShuoExpertService.getById(expertId); |
| | | SysUser sysUser = sysUserDao.selectOne(new QueryWrapper<SysUser>().lambda().eq(SysUser::getPhone, expert.getPhone()).eq(SysUser::getType, 1).eq(SysUser::getAppId,"wx0cef797390444b75" )); |
| | | SanShuoMessageVO vo=new SanShuoMessageVO(); |
| | | if (nonNull(sysUser)){ |
| | | if (isNull(sysUser)){ |
| | | return; |
| | | } |
| | | if (isNull(sysUser.getOpenid())){ |
| | | log.info("专家未登陆APP,无法推送"); |
| | | return; |
| | | } |
| | | } |
| | | vo.setTouser(sysUser.getOpenid()); |
| | | vo.setThing1(commediateTypeService.getById(comEvent.getEventCategory()).getName()); |
| | |
| | | || comEvent.getEventProcessStatus() == SanShuoEventStatusEnum.VALID.getCode().intValue()) { |
| | | comEvent.setId(id); |
| | | comEvent.setUserEventStatus(4); |
| | | comEvent.setEventProcessStatus(8); |
| | | comEvent.setEventProcessStatus(9); |
| | | comEvent.setRevokeDes("用户手动取消"); |
| | | comEvent.setRevokeDate(new Date()); |
| | | int flag = baseMapper.updateById(comEvent); |
| | |
| | | Map<String,Object> param=new HashMap<>(); |
| | | param.put("touser", vo.getTouser()); |
| | | param.put("template_id", TEMPLATE_ID); |
| | | param.put("page","packageE/page/sanShuo/mediationRoom/mediationRoom"); |
| | | Map<String,Object> data=new HashMap<>(); |
| | | data.put("thing1", formData(vo.getThing1())); |
| | | data.put("thing5", formData(vo.getThing5())); |