Commit 48e7bc77 authored by tangwei's avatar tangwei

增加调派规则调用

parent 8f58234e
......@@ -86,13 +86,8 @@ public class AlertCallePowerTransferRo implements Serializable{
private String contactPhone;
@ApiModelProperty(value = " 调派单位id")
private Long powerCompanyId;
@ApiModelProperty(value = "调派单位名称")
private String powerCompanyName;
@ApiModelProperty(value = "调派单位资源列表")
private List< CompanyDto> company;
@ApiModelProperty(value = "调派单位资源列表")
private List<PowerTransferCompanyResourcesDto> powerTransferCompanyResourcesDtoList;
......
package com.yeejoin.amos.boot.module.jcs.api.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description:
* @author: tw
* @createDate: 2021/11/11
*/
@Data
public class CompanyDto {
@ApiModelProperty(value = " 调派单位id")
private Long powerCompanyId;
@ApiModelProperty(value = "调派单位名称")
private String powerCompanyName;
}
package com.yeejoin.amos.boot.module.jcs.biz.rule.action;
import com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo;
import com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedServiceImpl;
import com.yeejoin.amos.component.rule.RuleActionBean;
import com.yeejoin.amos.component.rule.RuleMethod;
import com.yeejoin.amos.feign.systemctl.Systemctl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import java.util.HashMap;
import java.util.Set;
/**
* <pre>
* 警情报送规则动作
* </pre>
*
* @author gwb
* @version $Id: AlertCalledAction.java, v 0.1 2021年6月24日 下午4:41:22 gwb Exp $
*/
@Component
@RuleActionBean(beanLabel = "调派报送")
public class PowerTransferAction {
public static final Logger log = LoggerFactory.getLogger(PowerTransferAction.class);
@Autowired
private AlertSubmittedServiceImpl alertSubmittedService;
/**
* 短信报送
*
* @param smsCode 短信模板code
* @param sendType 发送类型
* @param sendIds 人员id
* @param object 模板内容对象
* @throws Exception 异常
*/
@RuleMethod(methodLabel = "短信报送", project = "西咸机场119接处警规则")
public void sendcmd(String smsCode, String sendType, String sendIds, Object object) throws Exception {
alertSubmittedService.ruleCallbackAction(smsCode, sendIds, object);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment