Commit 3ab4374e by jinxin

修改

parent 839ec5be
......@@ -253,7 +253,7 @@ public interface WxEnterpriseApiService {
ServiceResponse<Boolean> syncWxEnterpriseInfo(String params);
/**
* 删除
* 删除自建应用wxaAppid
* @param wxEnterpriseId 企业微信id
* @return
*/
......
......@@ -88,5 +88,5 @@ public interface WxEnterpriseMapper {
* @return
*/
List<TabHaobanWxEnterprise> listAllByWxSecurityType(@Param("wxSecurityType") Integer wxSecurityType);
void deleteByWxEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId) ;
void updateWxaAppid(@Param("wxEnterpriseId") String wxEnterpriseId,@Param("wxaAppid")String wxaAppid);
}
\ No newline at end of file
......@@ -91,6 +91,6 @@ public interface WxEnterpriseService {
* 删除
* @param wxEnterpriseId
*/
void deleteByWxEnterpriseId(String wxEnterpriseId) ;
void deleteByWxEnterpriseId(String wxEnterpriseId,String wxaAppid) ;
}
......@@ -308,7 +308,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
@Override
public void deleteByWxEnterpriseId(String wxEnterpriseId) {
this.mapper.deleteByWxEnterpriseId(wxEnterpriseId);
public void deleteByWxEnterpriseId(String wxEnterpriseId,String wxaAppid) {
this.mapper.updateWxaAppid(wxEnterpriseId,wxaAppid);
}
}
......@@ -574,7 +574,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
@Override
public ServiceResponse<Boolean> deleteByWxEnterpriseId(String wxEnterpriseId) {
log.info("删除的企业微信id:{}",wxEnterpriseId);
wxEnterpriseService.deleteByWxEnterpriseId(wxEnterpriseId);
wxEnterpriseService.deleteByWxEnterpriseId(wxEnterpriseId,null);
return ServiceResponse.success(true);
}
}
......@@ -570,9 +570,9 @@
</select>
<update id="deleteByWxEnterpriseId">
<update id="updateWxaAppid">
update tab_haoban_wx_enterprise
set status_flag = 0,
set wxa_appid = #{wxaAppid},
update_time = now()
where wx_enterprise_id = #{wxEnterpriseId}
</update>
......
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