Commit d5782b8a by qwmqiuwenmin

fix

parent 8d8e079f
...@@ -54,6 +54,8 @@ public class StaffDTO implements Serializable{ ...@@ -54,6 +54,8 @@ public class StaffDTO implements Serializable{
private Integer superManagerFlag; private Integer superManagerFlag;
private Boolean weixinPush;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public int getClerkType() { public int getClerkType() {
...@@ -251,5 +253,13 @@ public class StaffDTO implements Serializable{ ...@@ -251,5 +253,13 @@ public class StaffDTO implements Serializable{
this.superManagerFlag = superManagerFlag; this.superManagerFlag = superManagerFlag;
} }
public Boolean getWeixinPush() {
return weixinPush;
}
public void setWeixinPush(Boolean weixinPush) {
this.weixinPush = weixinPush;
}
} }
...@@ -262,7 +262,9 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -262,7 +262,9 @@ public class MessageApiServiceImpl implements MessageApiService {
} }
departmentIds = departmentIds.substring(0,departmentIds.length() - 1); departmentIds = departmentIds.substring(0,departmentIds.length() - 1);
} }
staffApiService.staffEdit(EntityUtil.changeEntityByJSON(StaffDTO.class, staff), departmentIds); StaffDTO staffDTO = EntityUtil.changeEntityByJSON(StaffDTO.class, staff);
staffDTO.setWeixinPush(true);
staffApiService.staffEdit(staffDTO, departmentIds);
}else { }else {
this.addUser(qywxCallBackDTO, staff); this.addUser(qywxCallBackDTO, staff);
......
...@@ -424,6 +424,8 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -424,6 +424,8 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
} }
Boolean weixinPush = staffDTO.getWeixinPush();
if(!weixinPush){
WxEnterpriseDTO enterpriseDTO = wxEnterpriseService.selectById(oldStaff.getWxEnterpriseId()); WxEnterpriseDTO enterpriseDTO = wxEnterpriseService.selectById(oldStaff.getWxEnterpriseId());
TabHaobanWxApplication application = wxApplicationService.selectByWxEnterpriseIdAndApplicationType(oldStaff.getWxEnterpriseId(),1); TabHaobanWxApplication application = wxApplicationService.selectByWxEnterpriseIdAndApplicationType(oldStaff.getWxEnterpriseId(),1);
if(enterpriseDTO != null) { if(enterpriseDTO != null) {
...@@ -451,6 +453,7 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -451,6 +453,7 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
} }
} }
}
@Override @Override
public void syscGicClerk(String fieldListString) { public void syscGicClerk(String fieldListString) {
......
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