@@ -38,4 +38,6 @@ public interface ContractInfoMapper extends BaseMapper<ControlContractInfo> {
BigDecimal getYearContractMoney(@Param("year") int year);
List<EMInvoiceInfoVO> getContractInvoiceList(@Param("contractId") Long contractId);
+
+ void realDeleteById(@Param("id") Long id);
}
@@ -2,6 +2,10 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.control.mapper.ContractInfoMapper">
+ <delete id="realDeleteById">
+ delete from c_control_contract_info
+ where id = #{id}
+ </delete>
<select id="getNoConnectionProject" resultType="org.springblade.control.entity.ControlProjectInfo">
select pi.id,pi.name from c_control_project_info pi left join c_control_contract_info ci on pi.id = ci.project_id WHERE pi.is_deleted = 0 and ci.id is null
@@ -113,7 +113,7 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
//合同回款记录一起删除
returnedInfoService.deleteByContractId(id);
- baseMapper.deleteById(id);
+ baseMapper.realDeleteById(id);
/**