Authored by Ge

order_code改成String 类型

... ... @@ -33,7 +33,7 @@ public interface IUserOrdersDAO {
*/
List<UserOrders> getExistOrderCodes(@Param("list") Set<String> list);
int selectCount(@Param("beginTime") int beginTime,@Param("endTime") int endTime,@Param("orderCode") int orderCode,@Param("unionId") String unionId,@Param("idList") List<String> idList);
int selectCount(@Param("beginTime") int beginTime,@Param("endTime") int endTime,@Param("orderCode") String orderCode,@Param("unionId") String unionId,@Param("idList") List<String> idList);
List<UserOrders> selectUserOrderList(@Param("beginTime") int beginTime,@Param("endTime") int endTime,@Param("orderCode") int orderCode,@Param("unionId") String unionId,@Param("idList") List<String> idList,@Param("startIndex") int startIndex, @Param("pageSize") int pageSize);
List<UserOrders> selectUserOrderList(@Param("beginTime") int beginTime,@Param("endTime") int endTime,@Param("orderCode") String orderCode,@Param("unionId") String unionId,@Param("idList") List<String> idList,@Param("startIndex") int startIndex, @Param("pageSize") int pageSize);
}
\ No newline at end of file
... ...
... ... @@ -79,12 +79,12 @@ public class UserOrdersServiceImpl implements IUserOrdersService,IBusinessExport
}
}
//查询总数
int count = userOrdersDAO.selectCount(beginTime,endTime,orderCode,unionId,idList);
int count = userOrdersDAO.selectCount(beginTime,endTime,String.valueOf(orderCode),unionId,idList);
logger.info("userOrdersDAO.selectCount: size is {}", count);
List<UserOrders> userOrdersList = new ArrayList<>();
List<UnionOrderRspBO> unionOrderRspBOList = new ArrayList<>();
if(count>0){
userOrdersList = userOrdersDAO.selectUserOrderList(beginTime,endTime,orderCode,unionId,idList,reqBO.getStart(),reqBO.getSize());
userOrdersList = userOrdersDAO.selectUserOrderList(beginTime,endTime,String.valueOf(orderCode),unionId,idList,reqBO.getStart(),reqBO.getSize());
}
for(UserOrders userOrders:userOrdersList){
//根据查询出来的uid,ordercode,查询ERP_ORDERS.Orders
... ...