调整运维工具-入驻清除-清除机构
1、判断条件改为openid+id 精准删除对应那一条数据,避免该openid下所有数据都被清除 2、调整清除所有方法
This commit is contained in:
parent
b7d16954c4
commit
d91ac19910
|
|
@ -17,7 +17,6 @@
|
|||
'' as comName
|
||||
from nu_biz_advisory_info a inner join nu_employees_advisory_info b on a.open_id = b.open_id
|
||||
<where>
|
||||
a.iz_js = '1'
|
||||
<if test="params.tel != null and params.tel != ''">
|
||||
AND a.tel = #{params.tel}
|
||||
</if>
|
||||
|
|
@ -41,7 +40,6 @@
|
|||
'' as comName
|
||||
from nu_biz_advisory_info a inner join nu_employees_advisory_info b on a.open_id = b.open_id
|
||||
<where>
|
||||
a.iz_yg = '1'
|
||||
<if test="params.tel != null and params.tel != ''">
|
||||
AND a.tel = #{params.tel}
|
||||
</if>
|
||||
|
|
@ -65,7 +63,6 @@
|
|||
ifnull(b.com_name,'') as comName
|
||||
from nu_biz_advisory_info a inner join nu_org_apply_info b on a.open_id = b.open_id
|
||||
<where>
|
||||
a.iz_jg = '1'
|
||||
<if test="params.tel != null and params.tel != ''">
|
||||
AND a.tel = #{params.tel}
|
||||
</if>
|
||||
|
|
@ -77,7 +74,7 @@
|
|||
</select>
|
||||
|
||||
<delete id="deleteOrgApply">
|
||||
delete from nu_org_apply_info where open_id = #{openId}
|
||||
delete from nu_org_apply_info where open_id = #{openId} and id = #{applyId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmployeesAdvisory">
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class CleanAdvisoryServiceImpl extends ServiceImpl<CleanAdvisoryMapper, C
|
|||
public void clean(CleanAdvisory cleanAdvisory) {
|
||||
String advisoryType = cleanAdvisory.getAdvisoryType();
|
||||
//清除长者咨询信息
|
||||
if (advisoryType.equals("1")) {
|
||||
if (advisoryType.equals("1") || advisoryType.equals("-1")) {
|
||||
cleanAdvisory.setIzJs("0");
|
||||
cleanAdvisory.setAdvisoryType("0");
|
||||
updateById(cleanAdvisory);
|
||||
|
|
@ -44,7 +44,7 @@ public class CleanAdvisoryServiceImpl extends ServiceImpl<CleanAdvisoryMapper, C
|
|||
onlycleanAdvisoryServiceImpl.clearBill(cleanAdvisory);
|
||||
}
|
||||
//清除员工咨询信息
|
||||
if (advisoryType.equals("2")) {
|
||||
if (advisoryType.equals("2") || advisoryType.equals("-1")) {
|
||||
cleanAdvisory.setIzYg("0");
|
||||
cleanAdvisory.setAdvisoryType("0");
|
||||
updateById(cleanAdvisory);
|
||||
|
|
@ -54,7 +54,7 @@ public class CleanAdvisoryServiceImpl extends ServiceImpl<CleanAdvisoryMapper, C
|
|||
onlycleanAdvisoryServiceImpl.clearEmp(cleanAdvisory);
|
||||
}
|
||||
//清除机构咨询信息
|
||||
if (advisoryType.equals("3")) {
|
||||
if (advisoryType.equals("3") || advisoryType.equals("-1")) {
|
||||
cleanAdvisory.setIzJg("0");
|
||||
cleanAdvisory.setAdvisoryType("0");
|
||||
updateById(cleanAdvisory);
|
||||
|
|
@ -106,11 +106,8 @@ public class CleanAdvisoryServiceImpl extends ServiceImpl<CleanAdvisoryMapper, C
|
|||
@Override
|
||||
@DS("ope")
|
||||
public void delete(CleanAdvisory cleanAdvisory) {
|
||||
clearBill(cleanAdvisory);
|
||||
baseMapper.deleteEmployeesAdvisory(cleanAdvisory);
|
||||
baseMapper.deleteBizEmployeesOrg(cleanAdvisory);
|
||||
baseMapper.deleteOrgApply(cleanAdvisory);
|
||||
baseMapper.deleteBizAdvisory(cleanAdvisory);
|
||||
cleanAdvisory.setAdvisoryType("-1");
|
||||
onlycleanAdvisoryServiceImpl.clean(cleanAdvisory);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue