mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-14 10:11:53 +08:00
fix:优化订单发货逻辑使其支持一单分发
This commit is contained in:
@@ -22,6 +22,11 @@ public class CombinationApiImpl implements CombinationApi {
|
||||
activityService.createRecord(reqDTO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getRecordStatus(Long userId, Long orderId) {
|
||||
return activityService.getRecordStatus(userId, orderId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateRecordStatus(Long userId, Long orderId, Integer status) {
|
||||
activityService.updateRecordStatusByUserIdAndOrderId(userId, orderId, status);
|
||||
|
@@ -109,4 +109,12 @@ public interface CombinationActivityService {
|
||||
*/
|
||||
void createRecord(CombinationRecordReqDTO reqDTO);
|
||||
|
||||
/**
|
||||
* 获得拼团状态
|
||||
*
|
||||
* @param userId 用户编号
|
||||
* @param orderId 订单编号
|
||||
* @return 拼团状态
|
||||
*/
|
||||
Integer getRecordStatus(Long userId, Long orderId);
|
||||
}
|
||||
|
@@ -248,4 +248,10 @@ public class CombinationActivityServiceImpl implements CombinationActivityServic
|
||||
recordMapper.insert(recordDO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getRecordStatus(Long userId, Long orderId) {
|
||||
CombinationRecordDO recordDO = validateCombinationRecord(userId, orderId);
|
||||
return recordDO.getStatus();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user