This commit is contained in:
jsowell
2026-05-26 16:17:02 +08:00
parent e3995b39d5
commit e8603ec1b2
5 changed files with 77 additions and 3 deletions

View File

@@ -35,5 +35,7 @@ public interface AdapayUnsplitRecordMapper {
List<AdapayUnsplitRecord> queryUnsplitOrders(@Param("startTime") String startTime, @Param("endTime") String endTime);
List<AdapayUnsplitRecord> selectByPaymentIds(@Param("list") List<String> paymentIds);
List<AdapayUnsplitRecordVO> queryList();
}

View File

@@ -32,5 +32,7 @@ public interface AdapayUnsplitRecordService{
List<AdapayUnsplitRecord> queryUnsplitOrders(String startTime, String endTime);
List<AdapayUnsplitRecord> selectByPaymentIds(List<String> paymentIds);
List<AdapayUnsplitRecordVO> queryList();
}

View File

@@ -79,6 +79,14 @@ public class AdapayUnsplitRecordServiceImpl implements AdapayUnsplitRecordServic
return adapayUnsplitRecordMapper.queryUnsplitOrders(startTime, endTime);
}
@Override
public List<AdapayUnsplitRecord> selectByPaymentIds(List<String> paymentIds) {
if (paymentIds == null || paymentIds.isEmpty()) {
return java.util.Collections.emptyList();
}
return adapayUnsplitRecordMapper.selectByPaymentIds(paymentIds);
}
@Override
public List<AdapayUnsplitRecordVO> queryList() {
return adapayUnsplitRecordMapper.queryList();

View File

@@ -733,6 +733,16 @@
<!--and order_code like 'C%'-->
</select>
<select id="selectByPaymentIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from adapay_unsplit_record
where payment_id in
<foreach close=")" collection="list" item="item" open="(" separator=",">
#{item,jdbcType=VARCHAR}
</foreach>
</select>
<select id="queryList" resultType="com.jsowell.pile.vo.AdapayUnsplitRecordVO">
SELECT
order_code as orderCode,