Commit 01ec88b6 by zhiwj

添加收回授权门店域的接口

parent 17ab6c2e
......@@ -160,4 +160,11 @@ public class StoreRegionApiServiceImpl implements StoreRegionApiService {
return ServiceResponse.success();
}
@Override
public ServiceResponse<Void> unAuthorizeRegion(Integer toEnterpriseId, Integer storeRegionId) {
storeRegionRelService.updateStatusByOther(toEnterpriseId, storeRegionId, GlobalInfo.DATA_STATUS_DELETE);
// TODO 调用删除门店自定义属性的方法
return ServiceResponse.success();
}
}
......@@ -172,9 +172,8 @@
limit 1
</select>
<update id="updateStatusByOther">
update tab_store_region_rel set status = 1
update tab_store_region_rel set status = #{status}
where enterprise_id = #{enterpriseId}
and region_id = #{regionId}
and status = #{status}
</update>
</mapper>
\ No newline at end of file
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