Commit 5137a767 by qwmqiuwenmin

fix

parent 213b6f91
......@@ -15,6 +15,8 @@ public class GicMessageDTO implements Serializable {
private String name;
//1新增,2修改,3删除
private Integer changeType;
private GicClerkDTO gicClerkDTO;
public String getEnterpriseId() {
return enterpriseId;
......@@ -71,4 +73,14 @@ public class GicMessageDTO implements Serializable {
public void setParentChain(String parentChain) {
this.parentChain = parentChain;
}
public GicClerkDTO getGicClerkDTO() {
return gicClerkDTO;
}
public void setGicClerkDTO(GicClerkDTO gicClerkDTO) {
this.gicClerkDTO = gicClerkDTO;
}
}
......@@ -6,6 +6,7 @@ import com.gic.commons.util.GICMQClientUtil;
import com.gic.haoban.base.api.common.Constant;
import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.manage.api.dto.DepartmentDTO;
import com.gic.haoban.manage.api.dto.GicClerkDTO;
import com.gic.haoban.manage.api.dto.GicMessageDTO;
import com.gic.haoban.manage.api.dto.QywxCallBackDTO;
import com.gic.haoban.manage.api.dto.StaffDTO;
......@@ -106,6 +107,10 @@ public class MessageApiServiceImpl implements MessageApiService {
departmentDTO.setWxEnterpriseId(enterprise.getWxEnterpriseId());
if(dto.getChangeType() == GicEditType.ADD.getCode()){
ServiceResponse response = this.departmentApiService.add(departmentDTO);
GicClerkDTO gicClerkDTO = dto.getGicClerkDTO();
if(gicClerkDTO != null){
staffApiService.addGicClerk(gicClerkDTO);
}
log.info("添加结果:{}", JSON.toJSONString(response));
}else if(dto.getChangeType() == GicEditType.UPDATE.getCode()){
TabHaobanDepartment department = this.departmentService.selectByRelatedId(dto.getId());
......
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