This commit is contained in:
geoffrey 2022-02-07 23:19:07 +08:00
parent 3cfcbce9ec
commit 786829be80
2 changed files with 12 additions and 14 deletions

View File

@ -62,7 +62,7 @@
<if test="orderDTO.cardId!=null">
AND c.id = #{orderDTO.cardId}
</if>
<if test="orderDTO.userIdList!=null and order3DTO.userIdList.size() > 0 ">
<if test="orderDTO.userIdList!=null and orderDTO.userIdList.size() > 0 ">
AND c.user_id in
<foreach collection="orderDTO.userIdList" item="id" separator="," open="(" close=")">
#{id}

View File

@ -19,12 +19,11 @@ class OrderServiceTest {
private OrderService orderService;
/**
* @MethodName: getOrder1List
* @Description:
* @Param: []
* @Return: void
* @Author: geoffrey
* @Date: 2021/12/25
* 一版分页普通分页
* @methodName: getOrder1List
* @return: void
* @author: geoffrey
* @date: 2022/2/7
**/
@Test
public void getOrder1List() {
@ -42,13 +41,12 @@ class OrderServiceTest {
/**
* @return void
* @throws
* @description
* @author ybwei
* @date 2022/1/7 17:26
* @params []
*/
* 二版分页-SQL优化通过id分页
* @methodName: getOrder2List
* @return: void
* @author: geoffrey
* @date: 2022/2/7
**/
@Test
public void getOrder2List() {
OrderReq orderReq = OrderReq