关闭微信群消息通知
This commit is contained in:
parent
edee5df97d
commit
e1777590c1
@ -30,6 +30,29 @@ public class CountyCodeWeiXinEntity implements Serializable {
|
|||||||
@Column(length = 128, columnDefinition = "varchar(128)")
|
@Column(length = 128, columnDefinition = "varchar(128)")
|
||||||
private String weixinId;
|
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() {
|
public CountyCodeWeiXinEntity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,8 +80,48 @@ public class CountyCodeWeiXinEntity implements Serializable {
|
|||||||
this.weixinId = weixinId;
|
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
|
@Override
|
||||||
public String toString() {
|
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 +
|
||||||
|
'}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -364,9 +364,11 @@ public class FirePointServiceImpl implements FirePointService {
|
|||||||
List<String> weixinIdList = new ArrayList<>();
|
List<String> weixinIdList = new ArrayList<>();
|
||||||
for (CountyCodeWeiXinEntity countyCodeWeiXin : countyCodeWeiXinList) {
|
for (CountyCodeWeiXinEntity countyCodeWeiXin : countyCodeWeiXinList) {
|
||||||
try {
|
try {
|
||||||
String codeNotZeroEnd = FirePointCodeUtils.getCodeNotZeroEnd(countyCodeWeiXin.getCountyCode());
|
if ((countyCodeWeiXin.getSendState() != null) && (countyCodeWeiXin.getSendState() != 0)) {
|
||||||
if (firePointEntity.getStreetCode().startsWith(codeNotZeroEnd)) {
|
String codeNotZeroEnd = FirePointCodeUtils.getCodeNotZeroEnd(countyCodeWeiXin.getCountyCode());
|
||||||
weixinIdList.add(countyCodeWeiXin.getWeixinId());
|
if (firePointEntity.getStreetCode().startsWith(codeNotZeroEnd)) {
|
||||||
|
weixinIdList.add(countyCodeWeiXin.getWeixinId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user