退菜数量
This commit is contained in:
@@ -5,6 +5,7 @@ import com.czg.account.entity.HandoverRecord;
|
||||
import com.czg.account.vo.HandoverCategoryListVo;
|
||||
import com.czg.account.vo.HandoverProductListVo;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -75,7 +76,7 @@ public interface OrderInfoRpcService {
|
||||
/**
|
||||
* 订单退菜数量
|
||||
*/
|
||||
int countReturnDish(Long shopId, String loginTime, String handoverTime);
|
||||
BigDecimal countReturnDish(Long shopId, String loginTime, String handoverTime);
|
||||
|
||||
/**
|
||||
* 会员充值金额 退款金额
|
||||
|
||||
@@ -78,7 +78,7 @@ public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
|
||||
" tb_order_info.shop_id = #{shopId} " +
|
||||
"and tb_order_info.create_time >= #{loginTime} and tb_order_info.create_time <= #{handoverTime} " +
|
||||
"and tb_order_info.paid_time is not null ")
|
||||
int countReturnDish(Long shopId, String loginTime, String handoverTime);
|
||||
BigDecimal countReturnDish(Long shopId, String loginTime, String handoverTime);
|
||||
|
||||
@Select("SELECT " +
|
||||
" SUM(CASE WHEN biz_code IN ('cashIn', 'wechatIn', 'alipayIn', 'adminIn') THEN amount ELSE 0 END) AS recharge," +
|
||||
|
||||
@@ -65,7 +65,7 @@ public class OrderInfoRpcServiceImpl implements OrderInfoRpcService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int countReturnDish(Long shopId, String loginTime, String handoverTime) {
|
||||
public BigDecimal countReturnDish(Long shopId, String loginTime, String handoverTime) {
|
||||
return orderInfoMapper.countReturnDish(shopId, loginTime, handoverTime);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user