
47 changed files with 2942 additions and 15 deletions
@ -0,0 +1,27 @@ |
|||||
|
package com.yxt.supervise.cyf.api.approvalrecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:26 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "审批记录信息", description = "审批记录信息") |
||||
|
@TableName("approval_record") |
||||
|
public class ApprovalRecord extends BaseEntity { |
||||
|
|
||||
|
//订单sid
|
||||
|
private double proSid; |
||||
|
//审批人
|
||||
|
private String approver; |
||||
|
//审批日期
|
||||
|
private String approvalDate; |
||||
|
//审批意见
|
||||
|
private double approvalOpinions; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.supervise.cyf.api.approvalrecord; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "原油库存记录信息 视图数据详情", description = "原油库存记录信息 视图数据详情") |
||||
|
public class ApprovalRecordDetailsVo implements Vo { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
|
||||
|
//订单sid
|
||||
|
private double proSid; |
||||
|
//审批人
|
||||
|
private String approver; |
||||
|
//审批日期
|
||||
|
private String approvalDate; |
||||
|
//审批意见
|
||||
|
private double approvalOpinions; |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.supervise.cyf.api.approvalrecord; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "原油库存记录信息 数据传输对象", description = "原油库存记录信息 数据传输对象") |
||||
|
public class ApprovalRecordDto implements Dto { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
//订单sid
|
||||
|
private String proSid; |
||||
|
//审批人
|
||||
|
private String approver; |
||||
|
//审批日期
|
||||
|
private String approvalDate; |
||||
|
//审批意见
|
||||
|
private String approvalOpinions; |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.supervise.cyf.api.approvalrecord; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:29 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "原油库存记录信息 查询条件", description = "原油库存记录信息 查询条件") |
||||
|
public class ApprovalRecordQuery implements Query { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
|
||||
|
//订单sid
|
||||
|
private double proSid; |
||||
|
//审批人
|
||||
|
private String approver; |
||||
|
//审批日期
|
||||
|
private String approvalDate; |
||||
|
//审批意见
|
||||
|
private double approvalOpinions; |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.supervise.cyf.api.approvalrecord; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:29 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "原油库存记录信息 视图数据对象", description = "原油库存记录信息 视图数据对象") |
||||
|
public class ApprovalRecordVo implements Vo { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
|
||||
|
//订单sid
|
||||
|
private double proSid; |
||||
|
//审批人
|
||||
|
private String approver; |
||||
|
//审批日期
|
||||
|
private String approvalDate; |
||||
|
//审批意见
|
||||
|
private double approvalOpinions; |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.supervise.cyf.biz.approvalrecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecord; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:37 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface ApprovalRecordMapper extends BaseMapper<ApprovalRecord> { |
||||
|
IPage<ApprovalRecordVo> selectPageVo(IPage<ApprovalRecord> page, @Param(Constants.WRAPPER) Wrapper<ApprovalRecord> qw); |
||||
|
|
||||
|
@Select("select *,t.number as tankNumber from crude_oil_inventory_record left join tank_information t on t.sid =c.tankSid where sid=#{sid}") |
||||
|
ApprovalRecord getCrudeBySid(@Param("sid")String sid); |
||||
|
void insertCrudeOilFiles(List<Map<String, String>> maps); |
||||
|
|
||||
|
List<ApprovalRecord> selectRecordBySid(@Param("sid") String sid); |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.cyf.biz.approvalrecord.ApprovalRecordMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordVo"> |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
approval_record |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
|
||||
|
<select id="selectRecordBySid" resultType="com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecord"> |
||||
|
select * |
||||
|
from approval_record |
||||
|
where porSid = #{sid} |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,42 @@ |
|||||
|
package com.yxt.supervise.cyf.biz.approvalrecord; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordDto; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordQuery; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:38 |
||||
|
*/ |
||||
|
@Api(tags = "审批记录信息") |
||||
|
@RestController |
||||
|
@RequestMapping("cyf/approval") |
||||
|
public class ApprovalRecordRest { |
||||
|
@Autowired |
||||
|
ApprovalRecordService ApprovalRecordService; |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<ApprovalRecordVo>> listPage(@RequestBody PagerQuery<ApprovalRecordQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<ApprovalRecordVo> pv = ApprovalRecordService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
@ApiOperation("新增") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save (@RequestBody ApprovalRecordDto dto){ |
||||
|
return ApprovalRecordService.save(dto); |
||||
|
} |
||||
|
|
||||
|
@ApiOperation("查询订单审批详细信息") |
||||
|
@GetMapping("/getRecordBySid/{sid}") |
||||
|
public ResultBean selectRecordBySid(@PathVariable String sid){ |
||||
|
return ApprovalRecordService.selectRecordBySid(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
package com.yxt.supervise.cyf.biz.approvalrecord; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecord; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordDto; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordQuery; |
||||
|
import com.yxt.supervise.cyf.api.approvalrecord.ApprovalRecordVo; |
||||
|
import com.yxt.supervise.cyf.api.tankinformation.TankInformation; |
||||
|
import com.yxt.supervise.cyf.biz.tankinformation.TankInformationMapper; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import java.util.*; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/5/4 14:37 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class ApprovalRecordService extends MybatisBaseService<ApprovalRecordMapper, ApprovalRecord> { |
||||
|
@Autowired |
||||
|
TankInformationMapper tankInformationMapper; |
||||
|
|
||||
|
public PagerVo<ApprovalRecordVo> listPageVo(PagerQuery<ApprovalRecordQuery> pq) { |
||||
|
ApprovalRecordQuery query = pq.getParams(); |
||||
|
QueryWrapper<ApprovalRecord> qw = new QueryWrapper<>(); |
||||
|
// if (StringUtils.isNotBlank(query.getDate())) {
|
||||
|
// qw.eq("STR_TO_DATE(c.recordDate,'%Y-%m-%d')", query.getDate());
|
||||
|
// }
|
||||
|
// if (StringUtils.isNotBlank(query.getNumber())) {
|
||||
|
// qw.like("t.number", query.getNumber());
|
||||
|
// }
|
||||
|
IPage<ApprovalRecord> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<ApprovalRecordVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<ApprovalRecordVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
@Transactional |
||||
|
public ResultBean save(ApprovalRecordDto dto){ |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
ApprovalRecord entity=new ApprovalRecord(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
Date curDate = new Date(); |
||||
|
String dfmt = DateUtil.format(curDate, "yyyy-MM-dd"); |
||||
|
TankInformation tank=tankInformationMapper.getTankBySid(dto.getTankSid()); |
||||
|
entity.setRecordDate(dfmt); |
||||
|
entity.setExistingInventory(dto.getHeight()*tank.getBottomArea()*tank.getDensity()); |
||||
|
String [] file=dto.getCrudeOilRecordFile(); |
||||
|
if(file!=null){ |
||||
|
List<Map<String,String>> maps=new ArrayList<>(); |
||||
|
for(String s:file){ |
||||
|
Map<String,String>m=new HashMap<>(); |
||||
|
m.put("mainSid",entity.getSid()); |
||||
|
m.put("url",s); |
||||
|
m.put("sid", UUID.randomUUID().toString()); |
||||
|
maps.add(m); |
||||
|
} |
||||
|
if(maps.size()>0){ |
||||
|
baseMapper.insertCrudeOilFiles(maps); |
||||
|
} |
||||
|
} |
||||
|
baseMapper.insert(entity); |
||||
|
//油罐每日填写信息修改
|
||||
|
tank.setExistingInventory(dto.getHeight()*tank.getBottomArea()*tank.getDensity()); |
||||
|
tankInformationMapper.updateById(tank); |
||||
|
return rb.success().setMsg("新增成功"); |
||||
|
} |
||||
|
public ResultBean update (ApprovalRecordDto dto){ |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
String dtoSid = dto.getSid(); |
||||
|
ApprovalRecord entity=fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
return rb.success().setMsg("修改成功"); |
||||
|
} |
||||
|
public ResultBean getCrudeBySid(String sid){ |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
ApprovalRecord ApprovalRecord=baseMapper.getCrudeBySid(sid); |
||||
|
return rb.success().setData(ApprovalRecord); |
||||
|
} |
||||
|
public ResultBean del(String sid){ |
||||
|
ResultBean rb=new ResultBean(); |
||||
|
baseMapper.delete(new QueryWrapper<ApprovalRecord>().eq("sid",sid)); |
||||
|
return rb.success().setMsg("删除成功"); |
||||
|
} |
||||
|
|
||||
|
public ResultBean selectRecordBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
List<ApprovalRecord> ApprovalRecord = baseMapper.selectRecordBySid(sid); |
||||
|
return rb.success().setData(ApprovalRecord); |
||||
|
} |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarm.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarm <br/> |
||||
|
* Description: (运维告警信息主表). <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表)", description = "(运维告警信息主表)") |
||||
|
@TableName("dispatch_opm_alarm") |
||||
|
public class DispatchOpmAlarm extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("首次告警时间") |
||||
|
private String firsttime; // 首次告警时间
|
||||
|
@ApiModelProperty("最后告警时间") |
||||
|
private String lasttime; // 最后告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmVo.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo <br/> |
||||
|
* Description: (运维告警信息主表) 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 视图数据详情", description = "(运维告警信息主表) 视图数据详情") |
||||
|
public class DispatchOpmAlarmDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("首次告警时间") |
||||
|
private String firsttime; // 首次告警时间
|
||||
|
@ApiModelProperty("最后告警时间") |
||||
|
private String lasttime; // 最后告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmDto.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmDto <br/> |
||||
|
* Description: (运维告警信息主表) 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 数据传输对象", description = "(运维告警信息主表) 数据传输对象") |
||||
|
public class DispatchOpmAlarmDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("首次告警时间") |
||||
|
private String firsttime; // 首次告警时间
|
||||
|
@ApiModelProperty("最后告警时间") |
||||
|
private String lasttime; // 最后告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,79 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchorderinfo.DispatchOrderinfoDto; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmFeign.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmFeign <br/> |
||||
|
* Description: (运维告警信息主表). <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "(运维告警信息主表)") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-dispatchcenter-DispatchOpmAlarm", |
||||
|
name = "supervise-dispatchcenter", |
||||
|
path = "v1/dispatchopmalarm", |
||||
|
fallback = DispatchOpmAlarmFeignFallback.class) |
||||
|
public interface DispatchOpmAlarmFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<DispatchOpmAlarmVo>> listPage(@RequestBody PagerQuery<DispatchOpmAlarmQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody DispatchOpmAlarmDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<DispatchOpmAlarmDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchorderinfo.DispatchOrderinfoDto; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmFeignFallback <br/> |
||||
|
* Description: (运维告警信息主表). <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class DispatchOpmAlarmFeignFallback implements DispatchOpmAlarmFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<DispatchOpmAlarmVo>> listPage(PagerQuery<DispatchOpmAlarmQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口yxt_dispatchcenter/dispatchopmalarm/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(DispatchOpmAlarmDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口yxt_dispatchcenter/dispatchopmalarm/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口yxt_dispatchcenter/dispatchopmalarm/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<DispatchOpmAlarmDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口yxt_dispatchcenter/dispatchopmalarm/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmQuery.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmQuery <br/> |
||||
|
* Description: (运维告警信息主表) 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 查询条件", description = "(运维告警信息主表) 查询条件") |
||||
|
public class DispatchOpmAlarmQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("首次告警时间") |
||||
|
private String firsttime; // 首次告警时间
|
||||
|
@ApiModelProperty("最后告警时间") |
||||
|
private String lasttime; // 最后告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarm; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmVo.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo <br/> |
||||
|
* Description: (运维告警信息主表) 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 视图数据对象", description = "(运维告警信息主表) 视图数据对象") |
||||
|
public class DispatchOpmAlarmVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("首次告警时间") |
||||
|
private String firsttime; // 首次告警时间
|
||||
|
@ApiModelProperty("最后告警时间") |
||||
|
private String lasttime; // 最后告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHis.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHis <br/> |
||||
|
* Description: (运维告警信息主表) 历史表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 历史表", description = "(运维告警信息主表) 历史表") |
||||
|
@TableName("dispatch_opm_alarm_his") |
||||
|
public class DispatchOpmAlarmHis extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("告警时间") |
||||
|
private String firsttime; // 告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisVo.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo <br/> |
||||
|
* Description: (运维告警信息主表) 历史表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 历史表 视图数据详情", description = "(运维告警信息主表) 历史表 视图数据详情") |
||||
|
public class DispatchOpmAlarmHisDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("告警时间") |
||||
|
private String firsttime; // 告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisDto.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisDto <br/> |
||||
|
* Description: (运维告警信息主表) 历史表 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 历史表 数据传输对象", description = "(运维告警信息主表) 历史表 数据传输对象") |
||||
|
public class DispatchOpmAlarmHisDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("告警时间") |
||||
|
private String firsttime; // 告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisFeign.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisFeign <br/> |
||||
|
* Description: (运维告警信息主表) 历史表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "(运维告警信息主表) 历史表") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-dispatchcenter-DispatchOpmAlarmHis", |
||||
|
name = "supervise-dispatchcenter", |
||||
|
path = "v1/dispatchopmalarmhis", |
||||
|
fallback = DispatchOpmAlarmHisFeignFallback.class) |
||||
|
public interface DispatchOpmAlarmHisFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<DispatchOpmAlarmHisVo>> listPage(@RequestBody PagerQuery<DispatchOpmAlarmHisQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody DispatchOpmAlarmHisDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<DispatchOpmAlarmHisDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisFeignFallback <br/> |
||||
|
* Description: (运维告警信息主表) 历史表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class DispatchOpmAlarmHisFeignFallback implements DispatchOpmAlarmHisFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<DispatchOpmAlarmHisVo>> listPage(PagerQuery<DispatchOpmAlarmHisQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口yxt_dispatchcenter/dispatchopmalarmhis/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(DispatchOpmAlarmHisDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口yxt_dispatchcenter/dispatchopmalarmhis/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口yxt_dispatchcenter/dispatchopmalarmhis/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<DispatchOpmAlarmHisDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口yxt_dispatchcenter/dispatchopmalarmhis/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,84 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisQuery.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisQuery <br/> |
||||
|
* Description: (运维告警信息主表) 历史表 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 历史表 查询条件", description = "(运维告警信息主表) 历史表 查询条件") |
||||
|
public class DispatchOpmAlarmHisQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("告警时间") |
||||
|
private String firsttime; // 告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisVo.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo <br/> |
||||
|
* Description: (运维告警信息主表) 历史表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "(运维告警信息主表) 历史表 视图数据对象", description = "(运维告警信息主表) 历史表 视图数据对象") |
||||
|
public class DispatchOpmAlarmHisVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("告警1一级、2二级") |
||||
|
private String warnlevel; // 告警1一级、2二级
|
||||
|
@ApiModelProperty("告警说明") |
||||
|
private String warnremarks; // 告警说明
|
||||
|
@ApiModelProperty("告警时间") |
||||
|
private String firsttime; // 告警时间
|
||||
|
@ApiModelProperty("告警类型") |
||||
|
private String alarmtype; // 告警类型
|
||||
|
@ApiModelProperty("1待处理、2已处理、3处理中、4忽略处理") |
||||
|
private String operationstatus; // 1待处理、2已处理、3处理中、4忽略处理
|
||||
|
@ApiModelProperty("处理说明") |
||||
|
private String operationcontent; // 处理说明
|
||||
|
@ApiModelProperty("处理人") |
||||
|
private String operationuser; // 处理人
|
||||
|
@ApiModelProperty("处理人名称") |
||||
|
private String operationuserrname; // 处理人名称
|
||||
|
@ApiModelProperty("处理时间") |
||||
|
private String operationtime; // 处理时间
|
||||
|
@ApiModelProperty("告警对象监测点") |
||||
|
private String warnobjectmpsn; // 告警对象监测点
|
||||
|
@ApiModelProperty("客户标识") |
||||
|
private String custid; // 客户标识
|
||||
|
@ApiModelProperty("告警设备id") |
||||
|
private String warneterid; // 告警设备id
|
||||
|
@ApiModelProperty("告警内容") |
||||
|
private String alarmcontent; // 告警内容
|
||||
|
@ApiModelProperty("告警原因") |
||||
|
private String alarmreason; // 告警原因
|
||||
|
@ApiModelProperty("告警1一级、2二级key") |
||||
|
private String warnlevelkey; |
||||
|
@ApiModelProperty("告警类型key") |
||||
|
private String alarmtypekey; |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorker.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorker <br/> |
||||
|
* Description: 计划运维人员情况. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "计划运维人员情况", description = "计划运维人员情况") |
||||
|
@TableName("dispatch_plan_worker") |
||||
|
public class DispatchPlanWorker extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("计划id") |
||||
|
private String planid; // 计划id
|
||||
|
@ApiModelProperty("巡视人名称") |
||||
|
private String principalname; // 巡视人名称
|
||||
|
@ApiModelProperty("巡视人sid") |
||||
|
private String principalsid; // 巡视人sid
|
||||
|
@ApiModelProperty("联系方式") |
||||
|
private String principalcontact; // 联系方式
|
||||
|
@ApiModelProperty("是否负责人") |
||||
|
private String executorname; // 是否负责人
|
||||
|
@ApiModelProperty("班组组织。") |
||||
|
private String workteam; // 班组组织。
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)") |
||||
|
private Integer assignstate; // 响应状态(接受、拒绝)
|
||||
|
@ApiModelProperty("响应时间(接受、拒绝)") |
||||
|
private String assigntime; // 响应时间(接受、拒绝)
|
||||
|
@ApiModelProperty("是否负责人key") |
||||
|
private String executornamekey; // 是否负责人key
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)key") |
||||
|
private String assignstatekey; // 响应状态(接受、拒绝)key
|
||||
|
@ApiModelProperty("班组组织。id") |
||||
|
private String workteamid; // 班组组织。id
|
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerVo.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo <br/> |
||||
|
* Description: 计划运维人员情况 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "计划运维人员情况 视图数据详情", description = "计划运维人员情况 视图数据详情") |
||||
|
public class DispatchPlanWorkerDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("计划id") |
||||
|
private String planid; // 计划id
|
||||
|
@ApiModelProperty("巡视人名称") |
||||
|
private String principalname; // 巡视人名称
|
||||
|
@ApiModelProperty("巡视人sid") |
||||
|
private String principalsid; // 巡视人sid
|
||||
|
@ApiModelProperty("联系方式") |
||||
|
private String principalcontact; // 联系方式
|
||||
|
@ApiModelProperty("是否负责人") |
||||
|
private String executorname; // 是否负责人
|
||||
|
@ApiModelProperty("班组组织。") |
||||
|
private String workteam; // 班组组织。
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)") |
||||
|
private Integer assignstate; // 响应状态(接受、拒绝)
|
||||
|
@ApiModelProperty("响应时间(接受、拒绝)") |
||||
|
private String assigntime; // 响应时间(接受、拒绝)
|
||||
|
@ApiModelProperty("是否负责人key") |
||||
|
private String executornamekey; // 是否负责人key
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)key") |
||||
|
private String assignstatekey; // 响应状态(接受、拒绝)key
|
||||
|
@ApiModelProperty("班组组织。id") |
||||
|
private String workteamid; // 班组组织。id
|
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerDto.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerDto <br/> |
||||
|
* Description: 计划运维人员情况 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "计划运维人员情况 数据传输对象", description = "计划运维人员情况 数据传输对象") |
||||
|
public class DispatchPlanWorkerDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("计划id") |
||||
|
private String planid; // 计划id
|
||||
|
@ApiModelProperty("巡视人名称") |
||||
|
private String principalname; // 巡视人名称
|
||||
|
@ApiModelProperty("巡视人sid") |
||||
|
private String principalsid; // 巡视人sid
|
||||
|
@ApiModelProperty("联系方式") |
||||
|
private String principalcontact; // 联系方式
|
||||
|
@ApiModelProperty("是否负责人") |
||||
|
private String executorname; // 是否负责人
|
||||
|
@ApiModelProperty("班组组织。") |
||||
|
private String workteam; // 班组组织。
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)") |
||||
|
private Integer assignstate; // 响应状态(接受、拒绝)
|
||||
|
@ApiModelProperty("响应时间(接受、拒绝)") |
||||
|
private String assigntime; // 响应时间(接受、拒绝)
|
||||
|
@ApiModelProperty("是否负责人key") |
||||
|
private String executornamekey; // 是否负责人key
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)key") |
||||
|
private String assignstatekey; // 响应状态(接受、拒绝)key
|
||||
|
@ApiModelProperty("班组组织。id") |
||||
|
private String workteamid; // 班组组织。id
|
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerFeign.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerFeign <br/> |
||||
|
* Description: 计划运维人员情况. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "计划运维人员情况") |
||||
|
@FeignClient( |
||||
|
contextId = "supervise-dispatchcenter-DispatchPlanWorker", |
||||
|
name = "supervise-dispatchcenter", |
||||
|
path = "v1/dispatchplanworker", |
||||
|
fallback = DispatchPlanWorkerFeignFallback.class) |
||||
|
public interface DispatchPlanWorkerFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<DispatchPlanWorkerVo>> listPage(@RequestBody PagerQuery<DispatchPlanWorkerQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody DispatchPlanWorkerDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<DispatchPlanWorkerDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerFeignFallback <br/> |
||||
|
* Description: 计划运维人员情况. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class DispatchPlanWorkerFeignFallback implements DispatchPlanWorkerFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<DispatchPlanWorkerVo>> listPage(PagerQuery<DispatchPlanWorkerQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口yxt_dispatchcenter/dispatchplanworker/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(DispatchPlanWorkerDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口yxt_dispatchcenter/dispatchplanworker/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口yxt_dispatchcenter/dispatchplanworker/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<DispatchPlanWorkerDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口yxt_dispatchcenter/dispatchplanworker/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerQuery.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerQuery <br/> |
||||
|
* Description: 工单运维人员情况 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "计划运维人员情况 查询条件", description = "计划运维人员情况 查询条件") |
||||
|
public class DispatchPlanWorkerQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("计划id") |
||||
|
private String planid; // 计划id
|
||||
|
@ApiModelProperty("巡视人名称") |
||||
|
private String principalname; // 巡视人名称
|
||||
|
@ApiModelProperty("巡视人sid") |
||||
|
private String principalsid; // 巡视人sid
|
||||
|
@ApiModelProperty("联系方式") |
||||
|
private String principalcontact; // 联系方式
|
||||
|
@ApiModelProperty("是否负责人") |
||||
|
private String executorname; // 是否负责人
|
||||
|
@ApiModelProperty("班组组织。") |
||||
|
private String workteam; // 班组组织。
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)") |
||||
|
private Integer assignstate; // 响应状态(接受、拒绝)
|
||||
|
@ApiModelProperty("响应时间(接受、拒绝)") |
||||
|
private String assigntime; // 响应时间(接受、拒绝)
|
||||
|
@ApiModelProperty("是否负责人key") |
||||
|
private String executornamekey; // 是否负责人key
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)key") |
||||
|
private String assignstatekey; // 响应状态(接受、拒绝)key
|
||||
|
@ApiModelProperty("班组组织。id") |
||||
|
private String workteamid; // 班组组织。id
|
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.api.dispatchplanworker; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerVo.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo <br/> |
||||
|
* Description: 计划运维人员情况 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "计划运维人员情况 视图数据对象", description = "计划运维人员情况 视图数据对象") |
||||
|
public class DispatchPlanWorkerVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("计划id") |
||||
|
private String planid; // 计划id
|
||||
|
@ApiModelProperty("巡视人名称") |
||||
|
private String principalname; // 巡视人名称
|
||||
|
@ApiModelProperty("巡视人sid") |
||||
|
private String principalsid; // 巡视人sid
|
||||
|
@ApiModelProperty("联系方式") |
||||
|
private String principalcontact; // 联系方式
|
||||
|
@ApiModelProperty("是否负责人") |
||||
|
private String executorname; // 是否负责人
|
||||
|
@ApiModelProperty("班组组织。") |
||||
|
private String workteam; // 班组组织。
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)") |
||||
|
private Integer assignstate; // 响应状态(接受、拒绝)
|
||||
|
@ApiModelProperty("响应时间(接受、拒绝)") |
||||
|
private String assigntime; // 响应时间(接受、拒绝)
|
||||
|
@ApiModelProperty("是否负责人key") |
||||
|
private String executornamekey; // 是否负责人key
|
||||
|
@ApiModelProperty("响应状态(接受、拒绝)key") |
||||
|
private String assignstatekey; // 响应状态(接受、拒绝)key
|
||||
|
@ApiModelProperty("班组组织。id") |
||||
|
private String workteamid; // 班组组织。id
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarm; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmMapper.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm.DispatchOpmAlarmMapper <br/> |
||||
|
* Description: (运维告警信息主表). <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface DispatchOpmAlarmMapper extends BaseMapper<DispatchOpmAlarm> { |
||||
|
|
||||
|
//@Update("update dispatch_opm_alarm set name=#{msg} where id=#{id}")
|
||||
|
//IPage<DispatchOpmAlarmVo> voPage(IPage<DispatchOpmAlarm> page, @Param(Constants.WRAPPER) QueryWrapper<DispatchOpmAlarm> qw);
|
||||
|
|
||||
|
IPage<DispatchOpmAlarmVo> selectPageVo(IPage<DispatchOpmAlarm> page, @Param(Constants.WRAPPER) Wrapper<DispatchOpmAlarm> qw); |
||||
|
|
||||
|
List<DispatchOpmAlarmVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<DispatchOpmAlarm> qw); |
||||
|
|
||||
|
@Select("select * from dispatch_opm_alarm") |
||||
|
List<DispatchOpmAlarmVo> selectListVo(); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm.DispatchOpmAlarmMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo"> |
||||
|
SELECT * FROM dispatch_opm_alarm <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo"> |
||||
|
SELECT * FROM dispatch_opm_alarm <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,103 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchorderinfo.DispatchOrderinfoDto; |
||||
|
import com.yxt.supervise.dispatchcenter.biz.dispatchorderinfo.DispatchOrderinfoService; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarm; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmQuery; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmDetailsVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmDto; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm.DispatchOpmAlarmRest <br/> |
||||
|
* Description: (运维告警信息主表). <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "(运维告警信息主表)") |
||||
|
@RestController("com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm.DispatchOpmAlarmRest") |
||||
|
@RequestMapping("v1/dispatchopmalarm") |
||||
|
public class DispatchOpmAlarmRest implements DispatchOpmAlarmFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private DispatchOpmAlarmService dispatchOpmAlarmService; |
||||
|
@Autowired |
||||
|
private DispatchOrderinfoService dispatchOrderinfoService; |
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<DispatchOpmAlarmVo>> listPage(@RequestBody PagerQuery<DispatchOpmAlarmQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<DispatchOpmAlarmVo> pv = dispatchOpmAlarmService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody DispatchOpmAlarmDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
dispatchOpmAlarmService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
dispatchOpmAlarmService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<DispatchOpmAlarmDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
DispatchOpmAlarmDetailsVo vo = dispatchOpmAlarmService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,123 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarm; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmQuery; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmDetailsVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmDto; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarm.DispatchOpmAlarmFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmService.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchopmalarm.DispatchOpmAlarmService <br/> |
||||
|
* Description: (运维告警信息主表) 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class DispatchOpmAlarmService extends MybatisBaseService<DispatchOpmAlarmMapper, DispatchOpmAlarm> { |
||||
|
private QueryWrapper<DispatchOpmAlarm> createQueryWrapper(DispatchOpmAlarmQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<DispatchOpmAlarm> qw = new QueryWrapper<>(); |
||||
|
if (StringUtils.isNotBlank(query.getWarnlevelkey())) { |
||||
|
qw.like("warnlevelkey", query.getWarnlevelkey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getAlarmtypekey())) { |
||||
|
qw.like("alarmtypekey", query.getWarnlevelkey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCustid())) { |
||||
|
qw.like("custid", query.getWarnlevelkey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getWarneterid())) { |
||||
|
qw.like("warneterid", query.getWarneterid()); |
||||
|
} |
||||
|
|
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<DispatchOpmAlarmVo> listPageVo(PagerQuery<DispatchOpmAlarmQuery> pq) { |
||||
|
DispatchOpmAlarmQuery query = pq.getParams(); |
||||
|
QueryWrapper<DispatchOpmAlarm> qw = createQueryWrapper(query); |
||||
|
IPage<DispatchOpmAlarm> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<DispatchOpmAlarmVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<DispatchOpmAlarmVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(DispatchOpmAlarmDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(DispatchOpmAlarmDto dto){ |
||||
|
DispatchOpmAlarm entity = new DispatchOpmAlarm(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(DispatchOpmAlarmDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
DispatchOpmAlarm entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public DispatchOpmAlarmDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
DispatchOpmAlarm entity = fetchBySid(sid); |
||||
|
DispatchOpmAlarmDetailsVo vo = new DispatchOpmAlarmDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHis; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisMapper.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis.DispatchOpmAlarmHisMapper <br/> |
||||
|
* Description: (运维告警信息主表) 历史表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface DispatchOpmAlarmHisMapper extends BaseMapper<DispatchOpmAlarmHis> { |
||||
|
|
||||
|
//@Update("update dispatch_opm_alarm_his set name=#{msg} where id=#{id}")
|
||||
|
//IPage<DispatchOpmAlarmHisVo> voPage(IPage<DispatchOpmAlarmHis> page, @Param(Constants.WRAPPER) QueryWrapper<DispatchOpmAlarmHis> qw);
|
||||
|
|
||||
|
IPage<DispatchOpmAlarmHisVo> selectPageVo(IPage<DispatchOpmAlarmHis> page, @Param(Constants.WRAPPER) Wrapper<DispatchOpmAlarmHis> qw); |
||||
|
|
||||
|
List<DispatchOpmAlarmHisVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<DispatchOpmAlarmHis> qw); |
||||
|
|
||||
|
@Select("select * from dispatch_opm_alarm_his") |
||||
|
List<DispatchOpmAlarmHisVo> selectListVo(); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis.DispatchOpmAlarmHisMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo"> |
||||
|
SELECT * FROM dispatch_opm_alarm_his <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo"> |
||||
|
SELECT * FROM dispatch_opm_alarm_his <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHis; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisQuery; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisDetailsVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisDto; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis.DispatchOpmAlarmHisRest <br/> |
||||
|
* Description: (运维告警信息主表) 历史表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "(运维告警信息主表) 历史表") |
||||
|
@RestController("com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis.DispatchOpmAlarmHisRest") |
||||
|
@RequestMapping("v1/dispatchopmalarmhis") |
||||
|
public class DispatchOpmAlarmHisRest implements DispatchOpmAlarmHisFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private DispatchOpmAlarmHisService dispatchOpmAlarmHisService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<DispatchOpmAlarmHisVo>> listPage(@RequestBody PagerQuery<DispatchOpmAlarmHisQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<DispatchOpmAlarmHisVo> pv = dispatchOpmAlarmHisService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody DispatchOpmAlarmHisDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
dispatchOpmAlarmHisService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
dispatchOpmAlarmHisService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<DispatchOpmAlarmHisDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
DispatchOpmAlarmHisDetailsVo vo = dispatchOpmAlarmHisService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHis; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisQuery; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisDetailsVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisDto; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchopmalarmhis.DispatchOpmAlarmHisFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchOpmAlarmHisService.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchopmalarmhis.DispatchOpmAlarmHisService <br/> |
||||
|
* Description: (运维告警信息主表) 历史表 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 22:20:04 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class DispatchOpmAlarmHisService extends MybatisBaseService<DispatchOpmAlarmHisMapper, DispatchOpmAlarmHis> { |
||||
|
private QueryWrapper<DispatchOpmAlarmHis> createQueryWrapper(DispatchOpmAlarmHisQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<DispatchOpmAlarmHis> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<DispatchOpmAlarmHisVo> listPageVo(PagerQuery<DispatchOpmAlarmHisQuery> pq) { |
||||
|
DispatchOpmAlarmHisQuery query = pq.getParams(); |
||||
|
QueryWrapper<DispatchOpmAlarmHis> qw = createQueryWrapper(query); |
||||
|
IPage<DispatchOpmAlarmHis> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<DispatchOpmAlarmHisVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<DispatchOpmAlarmHisVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(DispatchOpmAlarmHisDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(DispatchOpmAlarmHisDto dto){ |
||||
|
DispatchOpmAlarmHis entity = new DispatchOpmAlarmHis(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(DispatchOpmAlarmHisDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
DispatchOpmAlarmHis entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public DispatchOpmAlarmHisDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
DispatchOpmAlarmHis entity = fetchBySid(sid); |
||||
|
DispatchOpmAlarmHisDetailsVo vo = new DispatchOpmAlarmHisDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchplanworker; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorker; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerMapper.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchplanworker.DispatchPlanWorkerMapper <br/> |
||||
|
* Description: 计划运维人员情况. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface DispatchPlanWorkerMapper extends BaseMapper<DispatchPlanWorker> { |
||||
|
|
||||
|
//@Update("update dispatch_plan_worker set name=#{msg} where id=#{id}")
|
||||
|
//IPage<DispatchPlanWorkerVo> voPage(IPage<DispatchPlanWorker> page, @Param(Constants.WRAPPER) QueryWrapper<DispatchPlanWorker> qw);
|
||||
|
|
||||
|
IPage<DispatchPlanWorkerVo> selectPageVo(IPage<DispatchPlanWorker> page, @Param(Constants.WRAPPER) Wrapper<DispatchPlanWorker> qw); |
||||
|
|
||||
|
List<DispatchPlanWorkerVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<DispatchPlanWorker> qw); |
||||
|
|
||||
|
@Select("select * from dispatch_plan_worker") |
||||
|
List<DispatchPlanWorkerVo> selectListVo(); |
||||
|
@Delete("delete from dispatch_plan_worker where planid=#{planid}") |
||||
|
void deleteByPlanSid(@Param("planid")String planid); |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.dispatchcenter.biz.dispatchplanworker.DispatchPlanWorkerMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo"> |
||||
|
SELECT * FROM dispatch_plan_worker <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo"> |
||||
|
SELECT * FROM dispatch_plan_worker <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchplanworker; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorker; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerQuery; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerDetailsVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerDto; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerFeignFallback.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchplanworker.DispatchPlanWorkerRest <br/> |
||||
|
* Description: 计划运维人员情况. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "计划运维人员情况") |
||||
|
@RestController("com.yxt.supervise.dispatchcenter.biz.dispatchplanworker.DispatchPlanWorkerRest") |
||||
|
@RequestMapping("v1/dispatchplanworker") |
||||
|
public class DispatchPlanWorkerRest implements DispatchPlanWorkerFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private DispatchPlanWorkerService dispatchPlanWorkerService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<DispatchPlanWorkerVo>> listPage(@RequestBody PagerQuery<DispatchPlanWorkerQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<DispatchPlanWorkerVo> pv = dispatchPlanWorkerService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody DispatchPlanWorkerDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
dispatchPlanWorkerService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
dispatchPlanWorkerService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<DispatchPlanWorkerDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
DispatchPlanWorkerDetailsVo vo = dispatchPlanWorkerService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,124 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.supervise.dispatchcenter.biz.dispatchplanworker; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchworker.DispatchWorker; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorker; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerQuery; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerDetailsVo; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerDto; |
||||
|
import com.yxt.supervise.dispatchcenter.api.dispatchplanworker.DispatchPlanWorkerFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: yxt_dispatchcenter(工单系统) <br/> |
||||
|
* File: DispatchPlanWorkerService.java <br/> |
||||
|
* Class: com.yxt.supervise.dispatchcenter.biz.dispatchplanworker.DispatchPlanWorkerService <br/> |
||||
|
* Description: 计划运维人员情况 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2023-06-04 21:49:49 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class DispatchPlanWorkerService extends MybatisBaseService<DispatchPlanWorkerMapper, DispatchPlanWorker> { |
||||
|
private QueryWrapper<DispatchPlanWorker> createQueryWrapper(DispatchPlanWorkerQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<DispatchPlanWorker> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<DispatchPlanWorkerVo> listPageVo(PagerQuery<DispatchPlanWorkerQuery> pq) { |
||||
|
DispatchPlanWorkerQuery query = pq.getParams(); |
||||
|
QueryWrapper<DispatchPlanWorker> qw = createQueryWrapper(query); |
||||
|
IPage<DispatchPlanWorker> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<DispatchPlanWorkerVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<DispatchPlanWorkerVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(DispatchPlanWorkerDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(DispatchPlanWorkerDto dto){ |
||||
|
DispatchPlanWorker entity = new DispatchPlanWorker(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(DispatchPlanWorkerDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
DispatchPlanWorker entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public DispatchPlanWorkerDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
DispatchPlanWorker entity = fetchBySid(sid); |
||||
|
DispatchPlanWorkerDetailsVo vo = new DispatchPlanWorkerDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public void deleteByPlanSid(String sid) { |
||||
|
baseMapper.deleteByPlanSid(sid); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(List<DispatchPlanWorkerDto> workers, String sid) { |
||||
|
workers.forEach(w->{ |
||||
|
DispatchPlanWorker entity = new DispatchPlanWorker(); |
||||
|
BeanUtil.copyProperties(w, entity, "id", "sid"); |
||||
|
entity.setPlanid(sid); |
||||
|
baseMapper.insert(entity); |
||||
|
}); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue