Commit 676e1a6c by fudahua

好办企业解绑操作

parent dba34d27
...@@ -27,7 +27,8 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService { ...@@ -27,7 +27,8 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
wxDTO.setUpdateTime(now); wxDTO.setUpdateTime(now);
TabHaobanWxEnterprise tabHaobanWxEnterprise = EntityUtil.changeEntityByJSON(TabHaobanWxEnterprise.class, wxDTO); TabHaobanWxEnterprise tabHaobanWxEnterprise = EntityUtil.changeEntityByJSON(TabHaobanWxEnterprise.class, wxDTO);
tabHaobanWxEnterprise.setStatusFlag(1); tabHaobanWxEnterprise.setStatusFlag(1);
mapper.insertSelective(tabHaobanWxEnterprise); tabHaobanWxEnterprise.setBindFlag(1);
mapper.insertSelective(tabHaobanWxEnterprise);
return wxDTO.getWxEnterpriseId(); return wxDTO.getWxEnterpriseId();
} }
...@@ -74,7 +75,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService { ...@@ -74,7 +75,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
public int unbind(String wxEnterpriseId) { public int unbind(String wxEnterpriseId) {
TabHaobanWxEnterprise enterprise = new TabHaobanWxEnterprise(); TabHaobanWxEnterprise enterprise = new TabHaobanWxEnterprise();
enterprise.setWxEnterpriseId(wxEnterpriseId); enterprise.setWxEnterpriseId(wxEnterpriseId);
enterprise.setStatusFlag(2); enterprise.setBindFlag(0);
enterprise.setUpdateTime(new Date()); enterprise.setUpdateTime(new Date());
return this.mapper.updateByPrimaryKeySelective(enterprise); return this.mapper.updateByPrimaryKeySelective(enterprise);
} }
......
...@@ -70,7 +70,8 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService { ...@@ -70,7 +70,8 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
wxEnterpriseId = enterprise.getWxEnterpriseId(); wxEnterpriseId = enterprise.getWxEnterpriseId();
wxDTO.setWxEnterpriseId(enterprise.getWxEnterpriseId()); wxDTO.setWxEnterpriseId(enterprise.getWxEnterpriseId());
wxDTO.setStatusFlag(1); wxDTO.setStatusFlag(1);
wxEnterpriseService.update(wxDTO); wxDTO.setBindFlag(1);
wxEnterpriseService.update(wxDTO);
}else{ }else{
wxEnterpriseId = wxEnterpriseService.add(wxDTO); wxEnterpriseId = wxEnterpriseService.add(wxDTO);
} }
......
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