Commit 91709df6 by qwmqiuwenmin

fix

parent 31bb716d
......@@ -28,4 +28,9 @@ public interface WxEnterpriseApiService {
WxEnterpriseDTO getOne(String wxEnterpriseId);
WxEnterpriseDTO getEnterpriseBycorpId(String corpId);
/**
* 更新企业
* @param enterpriseDTO
*/
void update(WxEnterpriseDTO enterpriseDTO);
}
......@@ -16,4 +16,6 @@ public interface WxEnterpriseService {
*/
TabHaobanWxEnterprise getEnterpriseBycorpId(String corpId);
void update(WxEnterpriseDTO enterpriseDTO);
}
......@@ -46,4 +46,11 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
return null;
}
@Override
public void update(WxEnterpriseDTO enterpriseDTO) {
enterpriseDTO.setUpdateTime(new Date());
mapper.updateByPrimaryKeySelective(EntityUtil.changeEntityByJSON(TabHaobanWxEnterprise.class, enterpriseDTO));
}
}
......@@ -106,4 +106,10 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
TabHaobanWxEnterprise enterprise = this.wxEnterpriseService.getEnterpriseBycorpId(corpId);
return EntityUtil.changeEntityByJSON(WxEnterpriseDTO.class, enterprise);
}
@Override
public void update(WxEnterpriseDTO enterpriseDTO) {
wxEnterpriseService.update(enterpriseDTO);
}
}
......@@ -74,6 +74,8 @@ public class ApplicationController extends WebBaseController{
applicationDTO.setSiteId(dto.getSuiteId());
wxApplicationApiService.addSuite(applicationDTO);
this.departmentApiService.initwxDepartment(dto.getCorpid(), suiteId, enterpriseDTO.getWxEnterpriseId());
enterpriseDTO.setContactFlag(1);
wxEnterpriseApiService.update(enterpriseDTO);
return resultResponse(HaoBanErrCode.ERR_1, result);
}
return resultResponse(HaoBanErrCode.ERR_0, dto);
......
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