Merge #81 into master from cc_20260320_standard_expense_Type

feat:时间调整

* cc_20260320_standard_expense_Type: (40 commits squashed)

  - feat:费用类型新增

  - feat:费用类型

  - feat:默认数据

  - feat:类型调整

  - Merge branch 'master' into cc_20260320_standard_expense_Type

  - feat:逻辑调整

  - Merge branch 'master' into cc_20260320_standard_expense_Type

  - feat:逻辑调整-标准店

  - feat:逻辑调整-标准店

  - feat:逻辑调整-标准店

  - feat:逻辑调整-标准店

  - feat:查询预分账调整

  - feat:查询预分账调整

  - feat:心愿单 校验调整

  - feat:心愿单 校验调整

  - feat:心愿单 金额校验调整

  - feat:心愿单 金额校验调整

  - feat:心愿单 金额校验调整

  - feat:先推送账单 再推送

  - feat:先推送账单 再推送

  - feat:先推送账单 再推送

  - feat:先推送账单 再推送

  - feat:先推送账单 再推送

  - feat:先推送账单 再推送 优化推送 当系统使用费为零的时候 推送数据重置的问题

  - Merge branch 'master' into cc_20260320_standard_expense_Type

  - feat:接口新增字段

  - feat:接口新增字段

  - feat:接口新增字段

  - feat:接口新增字段

  - feat:接口新增字段

  - feat:接口新增字段

  - feat:数据调整

  - feat:新增系统服务费

  - feat:新增系统服务费 319

  - feat:新增系统服务费 319

  - feat:新增系统服务费 319

  - feat:时间调整

  - feat:时间调整

  - feat:时间调整

  - feat:时间调整

Signed-off-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com>
Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com>

CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/81
This commit is contained in:
正新
2026-03-30 13:20:15 +00:00
parent d03bdb7cb0
commit 310ae0be7d
50 changed files with 1606 additions and 325 deletions

View File

@@ -40,7 +40,7 @@ public class ConfigOptionDAO {
return configOptionMapper.deleteByExample(example) > 0;
}
public List<ConfigOptionDO> query(String categoryCode, String itemCode, Integer active, String optionName) {
public List<ConfigOptionDO> query(String categoryCode, String itemCode, Integer active, String optionName,String expenseTypeCode) {
Example example = new Example(ConfigOptionDO.class);
Example.Criteria criteria = example.createCriteria();
if (Objects.nonNull(categoryCode)) {
@@ -52,6 +52,9 @@ public class ConfigOptionDAO {
if (Objects.nonNull(active)) {
criteria.andEqualTo("active", active);
}
if (Objects.nonNull(expenseTypeCode)) {
criteria.andEqualTo("expense_type_code", expenseTypeCode);
}
if (Objects.nonNull(optionName) && !optionName.trim().isEmpty()) {
criteria.andLike("optionName", "%" + optionName.trim() + "%");
}

View File

@@ -1,5 +1,6 @@
package com.cool.store.dao.fees;
import com.cool.store.dto.fees.WalletAllocationDTO;
import com.cool.store.entity.fees.WalletAllocationConfigDO;
import com.cool.store.mapper.fees.WalletAllocationConfigMapper;
import lombok.RequiredArgsConstructor;
@@ -62,6 +63,15 @@ public class WalletAllocationConfigDAO {
return walletAllocationConfigMapper.selectByExample(example);
}
public List<WalletAllocationDTO> selectByExpenseTypeList(Integer joinBrand, List<String> expenseTypeList) {
if (joinBrand==null){
return null;
}
return walletAllocationConfigMapper.getAllWalletAllocation(joinBrand,expenseTypeList);
}
/**
* 分页查询
*/

View File

@@ -41,6 +41,10 @@ public class PreAllocationRecordDAO {
return preAllocationRecordMapper.deleteByShopId(shopId) > 0;
}
public boolean updateByPayNoList(List<String> payNoList,Integer status) {
return preAllocationRecordMapper.updateByPayNoList(payNoList,status)>0;
}
public boolean insertBatch(List<PreAllocationRecordDO> list) {
return preAllocationRecordMapper.insertBatch(list) > 0;
}
@@ -49,7 +53,21 @@ public class PreAllocationRecordDAO {
return preAllocationRecordMapper.updateBatch(list) > 0;
}
public boolean batchUpdateEditableFields(List<PreAllocationRecordDO> list) {
if (list == null || list.isEmpty()) {
return false;
}
return preAllocationRecordMapper.batchUpdateEditableFields(list) > 0;
}
public boolean updateByOrderId(Long orderId) {
return preAllocationRecordMapper.updateByOrderId(orderId) > 0;
}
public boolean deleteByIdsNotPaid(List<Long> ids) {
if (ids == null || ids.isEmpty()) {
return false;
}
return preAllocationRecordMapper.deleteByIdsNotPaid(ids) > 0;
}
}

View File

@@ -23,6 +23,10 @@ public class StoreOrderDAO {
return storeOrderMapper.getById(id);
}
public Integer deleteById(StoreOrderDO storeOrderDO){
return storeOrderMapper.delete(storeOrderDO);
}
public List<StoreOrderDO> queryPage(Long shopId, Integer status) {
return storeOrderMapper.queryPage(shopId, status);
}

View File

@@ -1,5 +1,6 @@
package com.cool.store.dao.order;
import com.cool.store.dto.fees.ExpenseTypeAmountDTO;
import com.cool.store.entity.order.StoreOrderOptionSnapshotDO;
import com.cool.store.mapper.order.StoreOrderOptionSnapshotMapper;
import lombok.RequiredArgsConstructor;
@@ -7,8 +8,10 @@ import org.apache.commons.collections4.CollectionUtils;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@Repository
@RequiredArgsConstructor
@@ -51,4 +54,10 @@ public class StoreOrderOptionSnapshotDAO {
mapper.batchUpdateQuantityAndAmount(list);
}
public List<ExpenseTypeAmountDTO> getExpenseTypeAmountByOrderId(Long orderId) {
if (orderId == null) {
return Collections.emptyList();
}
return mapper.getExpenseTypeAmountByOrderId(orderId);
}
}

View File

@@ -82,15 +82,21 @@ public class StoreWishlistDAO {
return mapper.listByLineIdAndStoreTypeAndVersion(lineId, storeTypeId, versionNo);
}
public List<MiniStoreWishlistListVO> listByLineId(Long lineId, Long storeTypeId) {
public List<MiniStoreWishlistListVO> listByLineId(Long lineId, Long storeTypeId,Integer wishlistStatus) {
if (lineId == null) {
return Collections.emptyList();
}
return mapper.listByLineId(lineId, storeTypeId);
return mapper.listByLineId(lineId, storeTypeId,wishlistStatus);
}
public List<MiniStoreWishlistListVO> listByVersionList(String keyword,Long storeTypeId,Integer wishlistStatus) {
return mapper.listByVersionList(keyword,storeTypeId,wishlistStatus);
}
public Boolean unbindPoint(Long id) {
if (id == null) {
return Boolean.FALSE;
}
return mapper.unbindPoint(id);
}
}

View File

@@ -1,5 +1,6 @@
package com.cool.store.dao.store;
import com.cool.store.entity.AssessmentDataDO;
import com.cool.store.entity.CloseStoreAuditRecordDO;
import com.cool.store.entity.store.StoreTypeDO;
import com.cool.store.entity.store.StoreTypeOptionDO;
@@ -42,6 +43,12 @@ public class StoreTypeOptionDAO {
return mapper.updateByExampleSelective(update,example);
}
public List<StoreTypeOptionDO> selectByIds(List<Long> optionIds,Long storeTypeId){
Example example = new Example(StoreTypeOptionDO.class);
example.createCriteria().andIn("optionId", optionIds).andEqualTo("storeTypeId",storeTypeId);
return mapper.selectByExample(example);
}
public List<StoreTypeOptionDO> listByStoreTypeId(Long storeTypeId) {
return mapper.select(StoreTypeOptionDO.builder().storeTypeId(storeTypeId).build());
}

View File

@@ -1,7 +1,16 @@
package com.cool.store.mapper.fees;
import com.cool.store.dto.fees.WalletAllocationDTO;
import com.cool.store.entity.fees.WalletAllocationConfigDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface WalletAllocationConfigMapper extends Mapper<WalletAllocationConfigDO> {
List<WalletAllocationDTO> getAllWalletAllocation(@Param("joinBrand") Integer joinBrand,
@Param("expenseTypeList") List<String> expenseTypeList);
}

View File

@@ -24,5 +24,11 @@ public interface PreAllocationRecordMapper extends Mapper<PreAllocationRecordDO>
int updateBatch(@Param("list") List<PreAllocationRecordDO> list);
int batchUpdateEditableFields(@Param("list") List<PreAllocationRecordDO> list);
int updateByOrderId(Long orderId);
int deleteByIdsNotPaid(@Param("ids") List<Long> ids);
Integer updateByPayNoList(@Param("payNoList") List<String> payNoList, @Param("status") Integer status);
}

View File

@@ -1,5 +1,6 @@
package com.cool.store.mapper.order;
import com.cool.store.dto.fees.ExpenseTypeAmountDTO;
import com.cool.store.entity.order.StoreOrderOptionSnapshotDO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
@@ -15,4 +16,6 @@ public interface StoreOrderOptionSnapshotMapper extends Mapper<StoreOrderOptionS
int deleteByOrderId(@Param("orderId") Long orderId);
void batchUpdateQuantityAndAmount(@Param("list") List<StoreOrderOptionSnapshotDO> list);
List<ExpenseTypeAmountDTO> getExpenseTypeAmountByOrderId(@Param("orderId") Long orderId);
}

View File

@@ -27,7 +27,8 @@ public interface StoreWishlistMapper extends Mapper<StoreWishlistDO> {
@Param("versionNo") String versionNo);
List<MiniStoreWishlistListVO> listByLineId(@Param("lineId") Long lineId,
@Param("storeTypeId") Long storeTypeId);
@Param("storeTypeId") Long storeTypeId,
@Param("wishlistStatus") Integer wishlistStatus);
List<MiniStoreWishlistListVO> listByVersionList(@Param("keyword") String keyword,
@@ -41,5 +42,11 @@ public interface StoreWishlistMapper extends Mapper<StoreWishlistDO> {
*/
Boolean updateByLineId(Long lineId) ;
/**
* 心愿单解绑点位
* @return
*/
Boolean unbindPoint(@Param("wishlistId") Long wishlistId);
}