mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-27 22:45:05 +08:00
update 添加临时方法,更新adapayUnsplitRecord数据
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.AdapayUnsplitRecord;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AdapayUnsplitRecordMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
@@ -26,4 +27,6 @@ public interface AdapayUnsplitRecordMapper {
|
||||
int updateBatchSelective(@Param("list") List<AdapayUnsplitRecord> list);
|
||||
|
||||
int batchInsert(@Param("list") List<AdapayUnsplitRecord> list);
|
||||
|
||||
List<AdapayUnsplitRecord> queryUnsplitOrders(@Param("startTime") String startTime, @Param("endTime") String endTime);
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
@Repository
|
||||
public interface OrderBasicInfoMapper {
|
||||
@@ -440,4 +441,6 @@ public interface OrderBasicInfoMapper {
|
||||
* @return List<OrderMonthStatVO>
|
||||
*/
|
||||
List<OrderMonthStatVO> selectOrderCountAndInsuranceByMonth(@Param("dto") QueryOrderDTO dto);
|
||||
|
||||
List<OrderBasicInfo> selectOrderTemp(@Param("orderCodes") Set<String> orderCodes);
|
||||
}
|
||||
|
||||
@@ -26,4 +26,5 @@ public interface AdapayUnsplitRecordService{
|
||||
|
||||
int batchInsert(List<AdapayUnsplitRecord> list);
|
||||
|
||||
List<AdapayUnsplitRecord> queryUnsplitOrders(String startTime, String endTime);
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ import java.text.ParseException;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public interface OrderBasicInfoService{
|
||||
|
||||
@@ -641,4 +642,7 @@ public interface OrderBasicInfoService{
|
||||
|
||||
|
||||
OrderCountByTimeVO queryOrderInsuranceAmountByTime(QueryOrderDTO dto);
|
||||
|
||||
// 临时接口, 查询订单信息
|
||||
List<OrderBasicInfo> selectOrderTemp(Set<String> orderCodes);
|
||||
}
|
||||
|
||||
@@ -77,9 +77,7 @@ import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.text.ParseException;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.YearMonth;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
@@ -6039,5 +6037,10 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
return vo;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OrderBasicInfo> selectOrderTemp(Set<String> orderCodes) {
|
||||
return orderBasicInfoMapper.selectOrderTemp(orderCodes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
package com.jsowell.web.controller.pile;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import com.jsowell.pile.domain.AdapayUnsplitRecord;
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.mapper.AdapayUnsplitRecordMapper;
|
||||
import com.jsowell.pile.service.AdapayUnsplitRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
@Service
|
||||
public class AdapayUnsplitRecordServiceImpl implements AdapayUnsplitRecordService{
|
||||
|
||||
@@ -69,4 +68,9 @@ public class AdapayUnsplitRecordServiceImpl implements AdapayUnsplitRecordServic
|
||||
return adapayUnsplitRecordMapper.batchInsert(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AdapayUnsplitRecord> queryUnsplitOrders(String startTime, String endTime) {
|
||||
return adapayUnsplitRecordMapper.queryUnsplitOrders(startTime, endTime);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -698,4 +698,11 @@
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<select id="queryUnsplitOrders" resultMap="BaseResultMap">
|
||||
select * from adapay_unsplit_record
|
||||
where pay_time >= #{startTime} and pay_time <= #{endTime}
|
||||
and due_refund_amount is null
|
||||
and settle_amount is null
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -3495,4 +3495,13 @@
|
||||
ORDER BY month ASC
|
||||
</select>
|
||||
|
||||
<select id="selectOrderTemp" resultMap="BaseResultMap">
|
||||
select
|
||||
order_code, refund_amount, settle_amount
|
||||
from order_basic_info
|
||||
where order_code in
|
||||
<foreach item="item" collection="orderCodes" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user