| | |
| | | import com.core.common.R; |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.core.exception.CoolException; |
| | | import com.sun.org.apache.xpath.internal.operations.Or; |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.entity.result.InOutCountDto; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * Created by vincent on 2022/4/9 |
| | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectOrderInformation(Map<String, String> param) { |
| | | ArrayList<String> list = new ArrayList<>(); |
| | | String name = param.get("name"); |
| | | User user = userService.selectOne(new EntityWrapper<User>().eq("username", name)); |
| | | if (Cools.isEmpty(user)){ |
| | | return list; |
| | | } |
| | | List<Order> orderList = orderService.selectList(new EntityWrapper<Order>().eq("create_by", user.getId())); |
| | | if (Cools.isEmpty(orderList)){ |
| | | return list; |
| | | } |
| | | for (Order order : orderList){ |
| | | if (order.getSettle() ==1 || order.getSettle() ==2){ |
| | | list.add(order.getOrderNo()); |
| | | } |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | private OpenOrderPakoutParam checkOrder(List<OpenOrderPakoutParam> list, String orderNo){ |
| | | |
| | | for (OpenOrderPakoutParam param : list){ |