服务编排:删除时真删除

This commit is contained in:
1378012178@qq.com 2025-11-06 14:00:17 +08:00
parent 1293a629ad
commit 364f2e48a9
11 changed files with 33 additions and 5 deletions

View File

@ -2,6 +2,7 @@ package com.nu.modules.NuBizNuCustomerServer.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerElderTag;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -13,4 +14,6 @@ import java.util.List;
*/
public interface NuBizNuCustomerElderTagMapper extends BaseMapper<NuBizNuCustomerElderTag> {
List<NuBizNuCustomerElderTag> getElderTags(NuBizNuCustomerElderTag nuBizNuCustomerElderTag);
int deleteByIdPhysic(@Param("id") String id);
}

View File

@ -2,6 +2,7 @@ package com.nu.modules.NuBizNuCustomerServer.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServerInstant;
import org.apache.ibatis.annotations.Param;
/**
* @Description: 护理单元客户配置服务指令即时指令
@ -10,4 +11,5 @@ import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServerInstant;
* @Version: V1.0
*/
public interface NuBizNuCustomerServerInstantMapper extends BaseMapper<NuBizNuCustomerServerInstant> {
int deleteByIdPhysic(@Param("id") String id);
}

View File

@ -21,4 +21,6 @@ public interface NuBizNuCustomerServerMapper extends BaseMapper<NuBizNuCustomerS
List<DirectivePackageDto> getNcPackagelist(@Param("params") DirectivePackageDto directivePackageDto);
List<NuBizNuCustomerServer> getNcDirectiveList(@Param("params") NuBizNuCustomerServer nuBizNuCustomerServer);
int deleteByIdPhysic(@Param("id") String id);
}

View File

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.nu.modules.NuBizNuCustomerServer.mapper.NuBizNuCustomerElderTagMapper">
<delete id="deleteByIdPhysic">
delete from nu_biz_nu_customer_elder_tag where id = #{id}
</delete>
<select id="getElderTags" resultType="com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerElderTag">
select

View File

@ -2,4 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.nu.modules.NuBizNuCustomerServer.mapper.NuBizNuCustomerServerInstantMapper">
<delete id="deleteByIdPhysic">
delete from nu_biz_nu_customer_server_instant where id = #{id}
</delete>
</mapper>

View File

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.nu.modules.NuBizNuCustomerServer.mapper.NuBizNuCustomerServerMapper">
<delete id="deleteByIdPhysic">
delete from nu_biz_nu_customer_server where id = #{id}
</delete>
<select id="getGroupPositioning" resultType="com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer">

View File

@ -13,4 +13,6 @@ import java.util.List;
*/
public interface INuBizNuCustomerElderTagService extends IService<NuBizNuCustomerElderTag> {
List<NuBizNuCustomerElderTag> getElderTags(NuBizNuCustomerElderTag nuBizNuCustomerElderTag);
int deleteByIdPhysic(String id);
}

View File

@ -11,4 +11,5 @@ import com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServerInstant;
*/
public interface INuBizNuCustomerServerInstantService extends IService<NuBizNuCustomerServerInstant> {
int deleteByIdPhysic(String id);
}

View File

@ -20,4 +20,9 @@ public class NuBizNuCustomerElderTagServiceImpl extends ServiceImpl<NuBizNuCusto
public List<NuBizNuCustomerElderTag> getElderTags(NuBizNuCustomerElderTag nuBizNuCustomerElderTag){
return baseMapper.getElderTags(nuBizNuCustomerElderTag);
}
@Override
public int deleteByIdPhysic(String id) {
return baseMapper.deleteByIdPhysic(id);
}
}

View File

@ -15,4 +15,8 @@ import org.springframework.stereotype.Service;
@Service
public class NuBizNuCustomerServerInstantServiceImpl extends ServiceImpl<NuBizNuCustomerServerInstantMapper, NuBizNuCustomerServerInstant> implements INuBizNuCustomerServerInstantService {
@Override
public int deleteByIdPhysic(String id) {
return baseMapper.deleteByIdPhysic(id);
}
}

View File

@ -375,19 +375,19 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl<NuBizNuCustome
@Override
public void deleteDirective(NuBizNuCustomerServer nuBizNuCustomerServer) {
baseMapper.deleteById(nuBizNuCustomerServer);
baseMapper.deleteByIdPhysic(nuBizNuCustomerServer.getId());
//TODO 增加日志
}
@Override
public void deleteInstant(NuBizNuCustomerServerInstant customerServerInstant) {
nuBizNuCustomerServerInstantService.removeById(customerServerInstant);
nuBizNuCustomerServerInstantService.deleteByIdPhysic(customerServerInstant.getId());
//TODO 增加日志
}
@Override
public void deleteElderTag(NuBizNuCustomerElderTag customerElderTag) {
nuBizNuCustomerElderTagService.removeById(customerElderTag);
nuBizNuCustomerElderTagService.deleteByIdPhysic(customerElderTag.getId());
//TODO 增加日志
}