关闭微信群消息通知

This commit is contained in:
liuchengqian 2022-08-19 09:22:33 +08:00
parent edee5df97d
commit e1777590c1
2 changed files with 69 additions and 4 deletions

View File

@ -30,6 +30,29 @@ public class CountyCodeWeiXinEntity implements Serializable {
@Column(length = 128, columnDefinition = "varchar(128)")
private String weixinId;
/**
* 区县名称
*/
@Column(length = 128, columnDefinition = "varchar(128)")
private String countyName;
/**
* 微信名
*/
@Column(length = 128, columnDefinition = "varchar(128)")
private String weixinName;
/**
* 备注
*/
@Column(length = 128, columnDefinition = "varchar(128)")
private String remark;
/**
* 发送状态
*/
private Long sendState;
public CountyCodeWeiXinEntity() {
}
@ -57,8 +80,48 @@ public class CountyCodeWeiXinEntity implements Serializable {
this.weixinId = weixinId;
}
public String getCountyName() {
return countyName;
}
public void setCountyName(String countyName) {
this.countyName = countyName;
}
public String getWeixinName() {
return weixinName;
}
public void setWeixinName(String weixinName) {
this.weixinName = weixinName;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Long getSendState() {
return sendState;
}
public void setSendState(Long sendState) {
this.sendState = sendState;
}
@Override
public String toString() {
return "CountyCodeWeiXinEntity{" + "id=" + id + ", countyCode='" + countyCode + '\'' + ", weixinId='" + weixinId + '\'' + '}';
return "CountyCodeWeiXinEntity{" +
"id=" + id +
", countyCode='" + countyCode + '\'' +
", weixinId='" + weixinId + '\'' +
", countyName='" + countyName + '\'' +
", weixinName='" + weixinName + '\'' +
", remark='" + remark + '\'' +
", sendState=" + sendState +
'}';
}
}

View File

@ -364,10 +364,12 @@ public class FirePointServiceImpl implements FirePointService {
List<String> weixinIdList = new ArrayList<>();
for (CountyCodeWeiXinEntity countyCodeWeiXin : countyCodeWeiXinList) {
try {
if ((countyCodeWeiXin.getSendState() != null) && (countyCodeWeiXin.getSendState() != 0)) {
String codeNotZeroEnd = FirePointCodeUtils.getCodeNotZeroEnd(countyCodeWeiXin.getCountyCode());
if (firePointEntity.getStreetCode().startsWith(codeNotZeroEnd)) {
weixinIdList.add(countyCodeWeiXin.getWeixinId());
}
}
} catch (Exception e) {
e.printStackTrace();
}