Merge branch 'master' of http://42.193.1.25:9521/r/sccg_server
| | |
| | | } |
| | | |
| | | @ApiOperation("批量删除消息") |
| | | @RequestMapping(value = "/delete", method = RequestMethod.POST) |
| | | @RequestMapping(value = "/delete", method = RequestMethod.DELETE) |
| | | @ResponseBody |
| | | @LogSave(operationType = "消息管理", contain = "删除消息") |
| | | public CommonResult delete(@RequestParam("ids") List<Long> ids) { |
| | |
| | | * 创建时间 |
| | | */ |
| | | @TableField("create_time") |
| | | @ExcelProperty(value = "创建时间", index = 11) |
| | | @ExcelIgnore |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | |
| | | package com.ycl.service.message.impl; |
| | | |
| | | import cn.hutool.core.net.url.UrlBuilder; |
| | | import cn.hutool.core.net.url.UrlPath; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | |
| | | import com.ycl.entity.message.Message; |
| | | import com.ycl.entity.message.SendReq; |
| | | import com.ycl.entity.message.SendRes; |
| | | import com.ycl.entity.user.UmsAdmin; |
| | | import com.ycl.exception.ApiException; |
| | | import com.ycl.mapper.message.MessageMapper; |
| | | import com.ycl.mapper.user.UmsAdminMapper; |
| | |
| | | case ChannelCode.MAIL: |
| | | sendMail(message); |
| | | break; |
| | | case ChannelCode.INNER: |
| | | break; |
| | | default: |
| | | throw new ApiException("未匹配到该类型"); |
| | | } |
| | |
| | | @ApiModelProperty(name = "id") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(name = "案件id") |
| | | private Long baseId; |
| | | @ApiModelProperty(name = "案件编号") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(name = "社区") |
| | | private String regionName; |
| | |
| | | and t1.status=#{messageParam.status} |
| | | </if> |
| | | <if test="messageParam.respondResult !=null and messageParam.respondResult !='' "> |
| | | and t1.respond_result={messageParam.respondResult} |
| | | and t1.respond_result=#{messageParam.respondResult} |
| | | </if> |
| | | <if test="messageParam.sort==1"> |
| | | ORDER BY t1.create_time desc |
| | |
| | | SELECT |
| | | t2.category, |
| | | t2.event_source, |
| | | t2.id as baseId, |
| | | t2.code as code, |
| | | t1.id, |
| | | t3.region_name, |
| | | t1.create_time, |
| | |
| | | SELECT |
| | | t2.category, |
| | | t2.event_source, |
| | | t2.id as baseId, |
| | | t2.code as code, |
| | | t1.id, |
| | | t3.region_name, |
| | | t1.create_time, |
| | |
| | | import com.ycl.controller.video.common.util.UtilNumber; |
| | | import com.ycl.enums.common.DictTypeEnum; |
| | | import com.ycl.service.caseHandler.IBaseCaseService; |
| | | import com.ycl.utils.MD5Util; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | |
| | | void createCode() { |
| | | // LocalDateTime parse = LocalDateTime.parse("2017-02-02 08:59:12", DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss")); |
| | | LocalDateTime ldt = LocalDateTime.parse("2017-02-02 08:44:12", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
| | | System.out.println(ldt); |
| | | |
| | | System.out.println( MD5Util.md5Encrypt32Lower("123456")); |
| | | } |
| | | |
| | | @Test |