1.更改短信平台 从阿里云更新导电信平台 2.系统设置加入提醒字段 3.法律法规 政策文件加入部门验证
| | |
| | | public ResultData selectConfigList(@RequestParam(value = "name",required = false) String name, |
| | | @RequestParam(value = "type",required = false) String type, |
| | | @RequestParam(value = "departmentId",required = false) Integer departmentId){ |
| | | List<AutomessagePolicyDocuments> list = iAutomessagePolicyDocumentsService.selectConfigList(name,type,departmentId); |
| | | List<AutomessagePolicyDocuments> list = iAutomessagePolicyDocumentsService.selectConfigList(name,type,departmentId,null); |
| | | return ResultData.success(list); |
| | | } |
| | | |
| | |
| | | import com.dg.core.db.gen.entity.AutomessagePolicyDocuments; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IAutomessagePolicyDocumentsService; |
| | | import com.dg.core.service.IOrganizationChartService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.Data; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private IAutomessagePolicyDocumentsService iAutomessagePolicyDocumentsService; |
| | | |
| | | @Resource |
| | | private IOrganizationChartService iOrganizationChartService; |
| | | |
| | | /** |
| | | * 获取法律法规政策文件列表(分页) |
| | |
| | | @RequestParam(value = "departmentId",required = false) Integer departmentId, |
| | | @CurrentUser SysUser sysUser){ |
| | | Page<AutomessagePolicyDocuments> pageParam = new Page<>(pageNum,pageSize); |
| | | List<AutomessagePolicyDocuments> list = iAutomessagePolicyDocumentsService.selectConfigList(pageParam,pageSize,name,type,sysUser,departmentId); |
| | | return getDataTable(list,iAutomessagePolicyDocumentsService.selectCountList(name,type,departmentId)); |
| | | List<String> ids=null; |
| | | if (sysUser!=null&&(sysUser.getUserType().equals("2")||sysUser.getIsDivisionHead().equals("1"))){ |
| | | ids=iOrganizationChartService.getDepartmentId(sysUser.getDepartmentId()); |
| | | } |
| | | List<AutomessagePolicyDocuments> list = iAutomessagePolicyDocumentsService.selectConfigList(pageParam,pageSize,name,type,sysUser,departmentId,ids); |
| | | return getDataTable(list,iAutomessagePolicyDocumentsService.selectCountList(name,type,departmentId,ids)); |
| | | } |
| | | |
| | | /** |
| | |
| | | public ResultData selectConfigList(@RequestParam(value = "name",required = false) String name, |
| | | @RequestParam(value = "type",required = false) String type, |
| | | @RequestParam(value = "departmentId",required = false) Integer departmentId){ |
| | | List<AutomessagePolicyDocuments> list = iAutomessagePolicyDocumentsService.selectConfigList(name,type,departmentId); |
| | | List<AutomessagePolicyDocuments> list = iAutomessagePolicyDocumentsService.selectConfigList(name,type,departmentId,null); |
| | | return ResultData.success(list); |
| | | } |
| | | |
| | |
| | | @ApiModelProperty("系统通知时间") |
| | | private Integer timeoutNotificationNum; |
| | | |
| | | |
| | | /** |
| | | * 系统提醒时间 |
| | | */ |
| | | @ApiModelProperty("系统提醒时间") |
| | | private Integer timeoutRemindNum; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | |
| | | * @param type 类型 |
| | | * @return |
| | | */ |
| | | List<AutomessagePolicyDocuments> selectConfigList(IPage<AutomessagePolicyDocuments> page, Integer state, @Param("name") String name, @Param("type") String type, @Param("departmentId") Integer departmentId); |
| | | List<AutomessagePolicyDocuments> selectConfigList(IPage<AutomessagePolicyDocuments> page, Integer state, @Param("name") String name, @Param("type") String type, @Param("departmentId") Integer departmentId, @Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param type 类型 |
| | | * @return |
| | | */ |
| | | List<AutomessagePolicyDocuments> selectConfigList(@Param("name") String name, @Param("type") String type, @Param("departmentId") Integer departmentId); |
| | | List<AutomessagePolicyDocuments> selectConfigList(@Param("name") String name, @Param("type") String type, @Param("departmentId") Integer departmentId, @Param("ids") List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | * 获取法律法规政策文件 (统计) |
| | | * @return |
| | | */ |
| | | Integer selectCountList(@Param("name") String name, @Param("type") String type,@Param("departmentId") Integer departmentId); |
| | | Integer selectCountList(@Param("name") String name, @Param("type") String type,@Param("departmentId") Integer departmentId, @Param("ids") List<String> ids); |
| | | |
| | | } |
| | |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<AutomessagePolicyDocuments> selectConfigList(IPage<AutomessagePolicyDocuments> page, Integer state, String name, String type, SysUser sysUser,Integer departmentId); |
| | | List<AutomessagePolicyDocuments> selectConfigList(IPage<AutomessagePolicyDocuments> page, Integer state, String name, String type, SysUser sysUser,Integer departmentId, List<String> ids); |
| | | |
| | | /** |
| | | * 获取法律法规政策文件 (不分页) |
| | |
| | | * @param type 类型 |
| | | * @return |
| | | */ |
| | | List<AutomessagePolicyDocuments> selectConfigList(String name, String type,Integer departmentId); |
| | | List<AutomessagePolicyDocuments> selectConfigList(String name, String type,Integer departmentId, List<String> ids); |
| | | |
| | | |
| | | /** |
| | |
| | | * 获取法律法规政策文件 (统计) |
| | | * @return |
| | | */ |
| | | Integer selectCountList(String name,String type,Integer departmentI); |
| | | Integer selectCountList(String name,String type,Integer departmentId,List<String> ids); |
| | | } |
| | |
| | | public class AutomessagePolicyDocumentsServiceImpl extends ServiceImpl<AutomessagePolicyDocumentsMapper, AutomessagePolicyDocuments> implements IAutomessagePolicyDocumentsService { |
| | | |
| | | @Override |
| | | public List<AutomessagePolicyDocuments> selectConfigList(IPage<AutomessagePolicyDocuments> page, Integer state, String name, String type, SysUser sysUser,Integer departmentId) { |
| | | List<AutomessagePolicyDocuments> automessagePolicyDocumentsList = baseMapper.selectConfigList(page, state, name, type, departmentId); |
| | | public List<AutomessagePolicyDocuments> selectConfigList(IPage<AutomessagePolicyDocuments> page, Integer state, String name, String type, SysUser sysUser,Integer departmentId, List<String> ids) { |
| | | List<AutomessagePolicyDocuments> automessagePolicyDocumentsList = baseMapper.selectConfigList(page, state, name, type, departmentId, ids); |
| | | if (sysUser!=null){ |
| | | for (AutomessagePolicyDocuments automessagePolicyDocuments:automessagePolicyDocumentsList) { |
| | | if(sysUser.getUserType().equals("1")){//超级管理员 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<AutomessagePolicyDocuments> selectConfigList(String name, String type,Integer departmentId) { |
| | | return baseMapper.selectConfigList(name,type,departmentId); |
| | | public List<AutomessagePolicyDocuments> selectConfigList(String name, String type,Integer departmentId, List<String> ids) { |
| | | return baseMapper.selectConfigList(name,type,departmentId,ids); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectCountList(String name,String type,Integer departmentId) { |
| | | return baseMapper.selectCountList(name,type,departmentId); |
| | | public Integer selectCountList(String name,String type,Integer departmentId,List<String> ids) { |
| | | return baseMapper.selectCountList(name,type,departmentId,ids); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | queryResults.setTransactionEventList(searchesAssociate); |
| | | queryResults.setKeywordEntityList(keywordMapper.selectByName(keyWord)); |
| | | queryResults.setAutomessagePolicyDocuments(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"2",null)); |
| | | queryResults.setRegulations(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"1",null)); |
| | | queryResults.setAutomessagePolicyDocuments(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"2",null,null)); |
| | | queryResults.setRegulations(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"1",null,null)); |
| | | return queryResults; |
| | | } |
| | | |
| | |
| | | } |
| | | recommendResult.setKeywordEntityList(keywordEntityList); |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByKeyWord(keyWord); |
| | | recommendResult.setAutomessagePolicyDocuments(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"2",null)); |
| | | recommendResult.setRegulations(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"1",null)); |
| | | recommendResult.setAutomessagePolicyDocuments(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"2",null,null)); |
| | | recommendResult.setRegulations(automessagePolicyDocumentsMapper.selectConfigList(keyWord,"1",null,null)); |
| | | recommendResult.setOrganizationChartEntityList(organizationChartEntities); |
| | | return recommendResult; |
| | | } |
| | |
| | | return ResultData.error("短信发送失败"); |
| | | } |
| | | |
| | | /** |
| | | * 发送短信登录验证码(电信平台) |
| | | * |
| | | * @param tel |
| | | * 电话 |
| | | */ |
| | | |
| | | public ResultData sendSmsNew(String tel) { |
| | | String url = |
| | | "https://dxsdk.028lk.com:8082/Api/SendSms?"+"LoginName="+LoginName+"&Pwd="+Pwd+"&FeeType="+FeeType+"&Mobile="+tel+"&Content="; |
| | |
| | | <if test="departmentId != null"> |
| | | and department_id in (SELECT id from automessage_organization_chart where id=#{departmentId} or parent_id = #{departmentId}) |
| | | </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> |
| | |
| | | <if test="departmentId != null"> |
| | | and department_id in (SELECT id from automessage_organization_chart where id=#{departmentId} or parent_id = #{departmentId}) |
| | | </if> |
| | | <if test="ids != null"> |
| | | and department_id IN |
| | | <foreach collection="ids" item="param" open="(" close=")" separator=","> |
| | | #{param} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <id property="submitType" column="submit_type" /> |
| | | <id property="timeoutTime" column="timeout_time" /> |
| | | <id property="isPush" column="is_push" /> |
| | | <id property="isHideComments" column="is_hide_comments" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectGuideRepairOrderVo"> |
| | |
| | | submit_type, |
| | | matter_name, |
| | | timeout_time, |
| | | is_hide_comments, |
| | | is_push, |
| | | (select organization_name from automessage_organization_chart where a.department_id=id)organizationName, |
| | | concat( |