提交 1315a5a0 作者: zhenjie

加盟申请记录删除校验

上级 74e126f9
...@@ -81,7 +81,8 @@ public enum ResultEnum implements BaseErrorInfoInterface { ...@@ -81,7 +81,8 @@ public enum ResultEnum implements BaseErrorInfoInterface {
CAN_NOT_CHANGE_THE_APPLICATION_OF_OTHERS("36776", "不能变更其他人申请的飞手执照及电子认证"), CAN_NOT_CHANGE_THE_APPLICATION_OF_OTHERS("36776", "不能变更其他人申请的飞手执照及电子认证"),
WX_NOT_SEND_MSG_PARAM_ERROR("5029", "userId和openId至少一个不为空"), WX_NOT_SEND_MSG_PARAM_ERROR("5029", "userId和openId至少一个不为空"),
APPLET_USER_ACCESS_TOKE_ERROR("5031", "获取accessToken签名校验失败"), APPLET_USER_ACCESS_TOKE_ERROR("5031", "获取accessToken签名校验失败"),
WX_NOT_REL_ERROR("5028", "获取微信公众号用户信息失败"); WX_NOT_REL_ERROR("5028", "获取微信公众号用户信息失败"),
DELETE_PASS_ERROR("5029", "已通过认证的不可删除");
/** /**
* 错误码 * 错误码
......
...@@ -140,6 +140,10 @@ public class CooperationServiceImpl implements CooperationService { ...@@ -140,6 +140,10 @@ public class CooperationServiceImpl implements CooperationService {
@Override @Override
public ResultBody deleteApplyTag(Integer id) { public ResultBody deleteApplyTag(Integer id) {
UserApplyTagDO userApplyTag = cooperationDao.getUserApplyTag(id);
if (userApplyTag.getApplyStatus().equals(1)) {
return ResultBody.error(ResultEnum.DELETE_PASS_ERROR);
}
cooperationDao.deleteApplyTag(id); cooperationDao.deleteApplyTag(id);
return ResultBody.success(); return ResultBody.success();
} }
......
...@@ -454,7 +454,7 @@ ...@@ -454,7 +454,7 @@
ci.brand_name, ci.brand_name,
ci.brand_logo, ci.brand_logo,
cbu.back_user_account_id, cbu.back_user_account_id,
st_distance_sphere(point(ci.lon, ci.lat), point(${lon}, ${lat})) AS distance round(st_distance_sphere(point(ci.lon, ci.lat),point(#{lon}, #{lat}))/1000, 2) AS distance
FROM user_apply_tag uat FROM user_apply_tag uat
INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id INNER JOIN cooperation_tag ct ON uat.cooperation_tag_id = ct.id
INNER JOIN company_member cm ON cm.user_account_id = uat.user_account_id INNER JOIN company_member cm ON cm.user_account_id = uat.user_account_id
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论