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