【同步】BOOT 和 CLOUD 的功能

pull/198/head
YunaiV 2025-07-19 15:53:32 +08:00
parent 08c31e889d
commit 2535c4a7c6
3 changed files with 2 additions and 5 deletions

View File

@ -316,7 +316,7 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
}
// 插入
#end
${subClassNameVar}.clean() // 清理掉创建、更新时间等相关属性值
${subClassNameVar}.clean(); // 清理掉创建、更新时间等相关属性值
${subClassNameVars.get($index)}Mapper.insert(${subClassNameVar});
return ${subClassNameVar}.getId();
}

View File

@ -100,7 +100,7 @@ public class CombinationActivityServiceImpl implements CombinationActivityServic
*/
private void validateProductExists(Long spuId, List<CombinationProductBaseVO> products) {
// 1. 校验商品 spu 是否存在
ProductSpuRespDTO spu = productSpuApi.getSpu(spuId);
ProductSpuRespDTO spu = productSpuApi.getSpu(spuId).getCheckedData();
if (spu == null) {
throw exception(SPU_NOT_EXISTS);
}

View File

@ -264,9 +264,6 @@ public class PayTransferServiceImpl implements PayTransferService {
}
int count = 0;
for (PayTransferDO transfer : list) {
if (!transfer.getId().equals(54L)) {
continue;
}
count += syncTransfer(transfer) ? 1 : 0;
}
return count;