dev.saas.customer
parent
2da8a0aad8
commit
111be4af5f
|
@ -1,9 +1,8 @@
|
||||||
package com.muyu.platform.domain;
|
package com.muyu.warning.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import lombok.experimental.SuperBuilder;
|
import lombok.experimental.SuperBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
@ -1,7 +1,6 @@
|
||||||
package com.muyu.platform.domain;
|
package com.muyu.warning.domain;
|
||||||
|
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import lombok.experimental.SuperBuilder;
|
import lombok.experimental.SuperBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
@ -1,7 +1,6 @@
|
||||||
package com.muyu.platform.domain;
|
package com.muyu.warning.domain;
|
||||||
|
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import lombok.experimental.SuperBuilder;
|
import lombok.experimental.SuperBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.domain.wx;
|
package com.muyu.warning.wx;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.domain.wx;
|
package com.muyu.warning.wx;
|
||||||
|
|
||||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform;
|
package com.muyu.warning;
|
||||||
|
|
||||||
import com.muyu.common.security.annotation.EnableCustomConfig;
|
import com.muyu.common.security.annotation.EnableCustomConfig;
|
||||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.controller;
|
package com.muyu.warning.controller;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -13,12 +13,11 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||||
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 com.muyu.common.security.annotation.RequiresPermissions;
|
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||||
import com.muyu.platform.domain.WarnLogs;
|
import com.muyu.warning.domain.WarnLogs;
|
||||||
import com.muyu.platform.service.IWarnLogsService;
|
import com.muyu.warning.service.IWarnLogsService;
|
||||||
import com.muyu.common.core.web.controller.BaseController;
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||||
import com.muyu.common.security.utils.SecurityUtils;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import com.muyu.common.core.web.page.TableDataInfo;
|
import com.muyu.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@ public class WarnLogsController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 查询预警日志列表
|
* 查询预警日志列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:logs:list")
|
@RequiresPermissions("warning:logs:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public Result<TableDataInfo<WarnLogs>> list(WarnLogs warnLogs)
|
public Result<TableDataInfo<WarnLogs>> list(WarnLogs warnLogs)
|
||||||
{
|
{
|
||||||
|
@ -50,7 +49,7 @@ public class WarnLogsController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 导出预警日志列表
|
* 导出预警日志列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:logs:export")
|
@RequiresPermissions("warning:logs:export")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, WarnLogs warnLogs)
|
public void export(HttpServletResponse response, WarnLogs warnLogs)
|
||||||
{
|
{
|
||||||
|
@ -62,7 +61,7 @@ public class WarnLogsController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 获取预警日志详细信息
|
* 获取预警日志详细信息
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:logs:query")
|
@RequiresPermissions("warning:logs:query")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public Result<List<WarnLogs>> getInfo(@PathVariable("id") Long id)
|
public Result<List<WarnLogs>> getInfo(@PathVariable("id") Long id)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +71,7 @@ public class WarnLogsController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 新增预警日志
|
* 新增预警日志
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:logs:add")
|
@RequiresPermissions("warning:logs:add")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public Result<Integer> add(
|
public Result<Integer> add(
|
||||||
@Validated @RequestBody WarnLogs warnLogs)
|
@Validated @RequestBody WarnLogs warnLogs)
|
||||||
|
@ -86,7 +85,7 @@ public class WarnLogsController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 修改预警日志
|
* 修改预警日志
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:logs:edit")
|
@RequiresPermissions("warning:logs:edit")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public Result<Integer> edit(
|
public Result<Integer> edit(
|
||||||
@Validated @RequestBody WarnLogs warnLogs)
|
@Validated @RequestBody WarnLogs warnLogs)
|
||||||
|
@ -100,7 +99,7 @@ public class WarnLogsController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 删除预警日志
|
* 删除预警日志
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:logs:remove")
|
@RequiresPermissions("warning:logs:remove")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public Result<Integer> remove(@PathVariable("ids") Long[] ids)
|
public Result<Integer> remove(@PathVariable("ids") Long[] ids)
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.controller;
|
package com.muyu.warning.controller;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -13,12 +13,11 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||||
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 com.muyu.common.security.annotation.RequiresPermissions;
|
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||||
import com.muyu.platform.domain.WarnRule;
|
import com.muyu.warning.domain.WarnRule;
|
||||||
import com.muyu.platform.service.IWarnRuleService;
|
import com.muyu.warning.service.IWarnRuleService;
|
||||||
import com.muyu.common.core.web.controller.BaseController;
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||||
import com.muyu.common.security.utils.SecurityUtils;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import com.muyu.common.core.web.page.TableDataInfo;
|
import com.muyu.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@ public class WarnRuleController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 查询预警规则列表
|
* 查询预警规则列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:rule:list")
|
@RequiresPermissions("warning:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public Result<TableDataInfo<WarnRule>> list(WarnRule warnRule)
|
public Result<TableDataInfo<WarnRule>> list(WarnRule warnRule)
|
||||||
{
|
{
|
||||||
|
@ -50,7 +49,7 @@ public class WarnRuleController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 导出预警规则列表
|
* 导出预警规则列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:rule:export")
|
@RequiresPermissions("warning:export")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, WarnRule warnRule)
|
public void export(HttpServletResponse response, WarnRule warnRule)
|
||||||
{
|
{
|
||||||
|
@ -62,7 +61,7 @@ public class WarnRuleController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 获取预警规则详细信息
|
* 获取预警规则详细信息
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:rule:query")
|
@RequiresPermissions("warning:query")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public Result<List<WarnRule>> getInfo(@PathVariable("id") Long id)
|
public Result<List<WarnRule>> getInfo(@PathVariable("id") Long id)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +71,7 @@ public class WarnRuleController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 新增预警规则
|
* 新增预警规则
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:rule:add")
|
@RequiresPermissions("warning:add")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public Result<Integer> add(
|
public Result<Integer> add(
|
||||||
@Validated @RequestBody WarnRule warnRule)
|
@Validated @RequestBody WarnRule warnRule)
|
||||||
|
@ -86,7 +85,7 @@ public class WarnRuleController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 修改预警规则
|
* 修改预警规则
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:rule:edit")
|
@RequiresPermissions("warning:edit")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public Result<Integer> edit(
|
public Result<Integer> edit(
|
||||||
@Validated @RequestBody WarnRule warnRule)
|
@Validated @RequestBody WarnRule warnRule)
|
||||||
|
@ -100,11 +99,12 @@ public class WarnRuleController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 删除预警规则
|
* 删除预警规则
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:rule:remove")
|
@RequiresPermissions("warning:remove")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public Result<Integer> remove(@PathVariable("ids") Long[] ids)
|
public Result<Integer> remove(@PathVariable("ids") Long[] ids)
|
||||||
{
|
{
|
||||||
warnRuleService.removeBatchByIds(Arrays.asList(ids));
|
warnRuleService.removeBatchByIds(Arrays.asList(ids));
|
||||||
return success();
|
return success();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.controller;
|
package com.muyu.warning.controller;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -13,12 +13,11 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||||
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 com.muyu.common.security.annotation.RequiresPermissions;
|
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||||
import com.muyu.platform.domain.WarnStrategy;
|
import com.muyu.warning.domain.WarnStrategy;
|
||||||
import com.muyu.platform.service.IWarnStrategyService;
|
import com.muyu.warning.service.IWarnStrategyService;
|
||||||
import com.muyu.common.core.web.controller.BaseController;
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||||
import com.muyu.common.security.utils.SecurityUtils;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import com.muyu.common.core.web.page.TableDataInfo;
|
import com.muyu.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@ public class WarnStrategyController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 查询预警策略列表
|
* 查询预警策略列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:strategy:list")
|
@RequiresPermissions("warning:strategy:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public Result<TableDataInfo<WarnStrategy>> list(WarnStrategy warnStrategy)
|
public Result<TableDataInfo<WarnStrategy>> list(WarnStrategy warnStrategy)
|
||||||
{
|
{
|
||||||
|
@ -50,7 +49,7 @@ public class WarnStrategyController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 导出预警策略列表
|
* 导出预警策略列表
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:strategy:export")
|
@RequiresPermissions("warning:strategy:export")
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, WarnStrategy warnStrategy)
|
public void export(HttpServletResponse response, WarnStrategy warnStrategy)
|
||||||
{
|
{
|
||||||
|
@ -62,7 +61,7 @@ public class WarnStrategyController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 获取预警策略详细信息
|
* 获取预警策略详细信息
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:strategy:query")
|
@RequiresPermissions("warning:strategy:query")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public Result<List<WarnStrategy>> getInfo(@PathVariable("id") Long id)
|
public Result<List<WarnStrategy>> getInfo(@PathVariable("id") Long id)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +71,7 @@ public class WarnStrategyController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 新增预警策略
|
* 新增预警策略
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:strategy:add")
|
@RequiresPermissions("warning:strategy:add")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public Result<Integer> add(
|
public Result<Integer> add(
|
||||||
@Validated @RequestBody WarnStrategy warnStrategy)
|
@Validated @RequestBody WarnStrategy warnStrategy)
|
||||||
|
@ -86,7 +85,7 @@ public class WarnStrategyController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 修改预警策略
|
* 修改预警策略
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:strategy:edit")
|
@RequiresPermissions("warning:strategy:edit")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public Result<Integer> edit(
|
public Result<Integer> edit(
|
||||||
@Validated @RequestBody WarnStrategy warnStrategy)
|
@Validated @RequestBody WarnStrategy warnStrategy)
|
||||||
|
@ -100,7 +99,7 @@ public class WarnStrategyController extends BaseController
|
||||||
/**
|
/**
|
||||||
* 删除预警策略
|
* 删除预警策略
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("platform:strategy:remove")
|
@RequiresPermissions("warning:strategy:remove")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public Result<Integer> remove(@PathVariable("ids") Long[] ids)
|
public Result<Integer> remove(@PathVariable("ids") Long[] ids)
|
||||||
{
|
{
|
|
@ -1,10 +1,10 @@
|
||||||
package com.muyu.platform.controller;
|
package com.muyu.warning.controller;
|
||||||
|
|
||||||
|
|
||||||
import com.muyu.platform.domain.wx.Message;
|
import com.muyu.warning.wx.Message;
|
||||||
import com.muyu.platform.message.Article;
|
import com.muyu.warning.message.Article;
|
||||||
import com.muyu.platform.message.NewMessage;
|
import com.muyu.warning.message.NewMessage;
|
||||||
import com.muyu.platform.util.TokenUtil;
|
import com.muyu.warning.util.TokenUtil;
|
||||||
import com.thoughtworks.xstream.XStream;
|
import com.thoughtworks.xstream.XStream;
|
||||||
import io.micrometer.common.util.StringUtils;
|
import io.micrometer.common.util.StringUtils;
|
||||||
import jakarta.servlet.ServletInputStream;
|
import jakarta.servlet.ServletInputStream;
|
|
@ -1,7 +1,6 @@
|
||||||
package com.muyu.platform.mapper;
|
package com.muyu.warning.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import com.muyu.warning.domain.WarnLogs;
|
||||||
import com.muyu.platform.domain.WarnLogs;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.muyu.platform.mapper;
|
package com.muyu.warning.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import com.muyu.warning.domain.WarnRule;
|
||||||
import com.muyu.platform.domain.WarnRule;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.muyu.platform.mapper;
|
package com.muyu.warning.mapper;
|
||||||
|
|
||||||
import java.util.List;
|
import com.muyu.warning.domain.WarnStrategy;
|
||||||
import com.muyu.platform.domain.WarnStrategy;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.message;
|
package com.muyu.warning.message;
|
||||||
|
|
||||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.message;
|
package com.muyu.warning.message;
|
||||||
|
|
||||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
|
@ -1,7 +1,7 @@
|
||||||
package com.muyu.platform.service;
|
package com.muyu.warning.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.muyu.platform.domain.WarnLogs;
|
import com.muyu.warning.domain.WarnLogs;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,7 +1,7 @@
|
||||||
package com.muyu.platform.service;
|
package com.muyu.warning.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.muyu.platform.domain.WarnRule;
|
import com.muyu.warning.domain.WarnRule;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,7 +1,7 @@
|
||||||
package com.muyu.platform.service;
|
package com.muyu.warning.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.muyu.platform.domain.WarnStrategy;
|
import com.muyu.warning.domain.WarnStrategy;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,10 +1,10 @@
|
||||||
package com.muyu.platform.service.impl;
|
package com.muyu.warning.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.muyu.platform.mapper.WarnLogsMapper;
|
import com.muyu.warning.mapper.WarnLogsMapper;
|
||||||
import com.muyu.platform.domain.WarnLogs;
|
import com.muyu.warning.domain.WarnLogs;
|
||||||
import com.muyu.platform.service.IWarnLogsService;
|
import com.muyu.warning.service.IWarnLogsService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.muyu.common.core.utils.StringUtils;
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.platform.service.impl;
|
package com.muyu.warning.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.muyu.platform.mapper.WarnRuleMapper;
|
import com.muyu.warning.mapper.WarnRuleMapper;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.muyu.platform.domain.WarnRule;
|
import com.muyu.warning.domain.WarnRule;
|
||||||
import com.muyu.platform.service.IWarnRuleService;
|
import com.muyu.warning.service.IWarnRuleService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.muyu.common.core.utils.StringUtils;
|
|
@ -1,10 +1,10 @@
|
||||||
package com.muyu.platform.service.impl;
|
package com.muyu.warning.service.impl;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.muyu.platform.mapper.WarnStrategyMapper;
|
import com.muyu.warning.mapper.WarnStrategyMapper;
|
||||||
import com.muyu.platform.domain.WarnStrategy;
|
import com.muyu.warning.domain.WarnStrategy;
|
||||||
import com.muyu.platform.service.IWarnStrategyService;
|
import com.muyu.warning.service.IWarnStrategyService;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.muyu.common.core.utils.StringUtils;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.platform.util;
|
package com.muyu.warning.util;
|
||||||
|
|
||||||
import okhttp3.*;
|
import okhttp3.*;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package com.muyu.platform.util;
|
package com.muyu.warning.util;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.muyu.platform.domain.wx.AccessToken;
|
import com.muyu.warning.wx.AccessToken;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -2,8 +2,8 @@
|
||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.muyu.platform.mapper.WarnLogsMapper">
|
<mapper namespace="com.muyu.warning.mapper.WarnLogsMapper">
|
||||||
|
|
||||||
<resultMap type="WarnLogs" id="WarnLogsResult">
|
<resultMap type="WarnLogs" id="WarnLogsResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="vin" column="vin" />
|
<result property="vin" column="vin" />
|
||||||
|
@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="selectWarnLogsList" parameterType="WarnLogs" resultMap="WarnLogsResult">
|
<select id="selectWarnLogsList" parameterType="WarnLogs" resultMap="WarnLogsResult">
|
||||||
<include refid="selectWarnLogsVo"/>
|
<include refid="selectWarnLogsVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
|
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
|
||||||
<if test="warnRuleId != null "> and warn_rule_id = #{warnRuleId}</if>
|
<if test="warnRuleId != null "> and warn_rule_id = #{warnRuleId}</if>
|
||||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||||
|
@ -35,12 +35,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="status != null "> and status = #{status}</if>
|
<if test="status != null "> and status = #{status}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectWarnLogsById" parameterType="Long" resultMap="WarnLogsResult">
|
<select id="selectWarnLogsById" parameterType="Long" resultMap="WarnLogsResult">
|
||||||
<include refid="selectWarnLogsVo"/>
|
<include refid="selectWarnLogsVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertWarnLogs" parameterType="WarnLogs" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertWarnLogs" parameterType="WarnLogs" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into warn_logs
|
insert into warn_logs
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
@ -88,9 +88,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteWarnLogsByIds" parameterType="String">
|
<delete id="deleteWarnLogsByIds" parameterType="String">
|
||||||
delete from warn_logs where id in
|
delete from warn_logs where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.muyu.platform.mapper.WarnRuleMapper">
|
<mapper namespace="com.muyu.warning.mapper.WarnRuleMapper">
|
||||||
|
|
||||||
<resultMap type="WarnRule" id="WarnRuleResult">
|
<resultMap type="WarnRule" id="WarnRuleResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="ruleName" column="rule_name" />
|
<result property="ruleName" column="rule_name" />
|
||||||
|
@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="selectWarnRuleList" parameterType="WarnRule" resultMap="WarnRuleResult">
|
<select id="selectWarnRuleList" parameterType="WarnRule" resultMap="WarnRuleResult">
|
||||||
<include refid="selectWarnRuleVo"/>
|
<include refid="selectWarnRuleVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if>
|
<if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if>
|
||||||
<if test="strategyId != null "> and strategy_id = #{strategyId}</if>
|
<if test="strategyId != null "> and strategy_id = #{strategyId}</if>
|
||||||
<if test="msgTypeId != null "> and msg_type_id = #{msgTypeId}</if>
|
<if test="msgTypeId != null "> and msg_type_id = #{msgTypeId}</if>
|
||||||
|
@ -31,12 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="minValue != null "> and min_value = #{minValue}</if>
|
<if test="minValue != null "> and min_value = #{minValue}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectWarnRuleById" parameterType="Long" resultMap="WarnRuleResult">
|
<select id="selectWarnRuleById" parameterType="Long" resultMap="WarnRuleResult">
|
||||||
<include refid="selectWarnRuleVo"/>
|
<include refid="selectWarnRuleVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertWarnRule" parameterType="WarnRule" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertWarnRule" parameterType="WarnRule" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into warn_rule
|
insert into warn_rule
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
@ -78,9 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteWarnRuleByIds" parameterType="String">
|
<delete id="deleteWarnRuleByIds" parameterType="String">
|
||||||
delete from warn_rule where id in
|
delete from warn_rule where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.muyu.platform.mapper.WarnStrategyMapper">
|
<mapper namespace="com.muyu.warning.mapper.WarnStrategyMapper">
|
||||||
|
|
||||||
<resultMap type="WarnStrategy" id="WarnStrategyResult">
|
<resultMap type="WarnStrategy" id="WarnStrategyResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="carTypeId" column="car_type_id" />
|
<result property="carTypeId" column="car_type_id" />
|
||||||
|
@ -17,18 +17,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="selectWarnStrategyList" parameterType="WarnStrategy" resultMap="WarnStrategyResult">
|
<select id="selectWarnStrategyList" parameterType="WarnStrategy" resultMap="WarnStrategyResult">
|
||||||
<include refid="selectWarnStrategyVo"/>
|
<include refid="selectWarnStrategyVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="carTypeId != null "> and car_type_id = #{carTypeId}</if>
|
<if test="carTypeId != null "> and car_type_id = #{carTypeId}</if>
|
||||||
<if test="strategyName != null and strategyName != ''"> and strategy_name like concat('%', #{strategyName}, '%')</if>
|
<if test="strategyName != null and strategyName != ''"> and strategy_name like concat('%', #{strategyName}, '%')</if>
|
||||||
<if test="msgId != null "> and msg_id = #{msgId}</if>
|
<if test="msgId != null "> and msg_id = #{msgId}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectWarnStrategyById" parameterType="Long" resultMap="WarnStrategyResult">
|
<select id="selectWarnStrategyById" parameterType="Long" resultMap="WarnStrategyResult">
|
||||||
<include refid="selectWarnStrategyVo"/>
|
<include refid="selectWarnStrategyVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertWarnStrategy" parameterType="WarnStrategy" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertWarnStrategy" parameterType="WarnStrategy" useGeneratedKeys="true" keyProperty="id">
|
||||||
insert into warn_strategy
|
insert into warn_strategy
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
@ -58,9 +58,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteWarnStrategyByIds" parameterType="String">
|
<delete id="deleteWarnStrategyByIds" parameterType="String">
|
||||||
delete from warn_strategy where id in
|
delete from warn_strategy where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue