Commit 4458d7aa499834c851320eb4ef4bcd6c68581e13
1 parent
5a3362ce
[FIX] CRM:回款计划创建查最大期次改单表查询,修 Unknown column 't.contract_id'(A6)- #1219
#1219
Showing
1 changed file
with
0 additions
and
2 deletions
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/receivable/CrmReceivablePlanMapper.java
| ... | ... | @@ -25,8 +25,6 @@ import java.util.Objects; |
| 25 | 25 | public interface CrmReceivablePlanMapper extends BaseMapperX<CrmReceivablePlanDO> { |
| 26 | 26 | |
| 27 | 27 | default CrmReceivablePlanDO selectMaxPeriodByContractId(Long contractId) { |
| 28 | - // 单表查询不能用 MPJLambdaWrapperX:它会给列拼接表别名前缀(t.contract_id), | |
| 29 | - // 但 selectOne 生成的 FROM 不带别名,导致 Unknown column 't.contract_id'。 | |
| 30 | 28 | return selectOne(new LambdaQueryWrapperX<CrmReceivablePlanDO>() |
| 31 | 29 | .eq(CrmReceivablePlanDO::getContractId, contractId) |
| 32 | 30 | .orderByDesc(CrmReceivablePlanDO::getPeriod) | ... | ... |