| | |
| | | import com.zy.asrs.service.OrderService; |
| | | import com.zy.asrs.service.PakoutService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.zy.system.entity.User; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | EntityWrapper<Pakout> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | |
| | | User user = getUser(); |
| | | if (user.getRoleId() != 2 || user.getRoleId() != 24) { |
| | | wrapper.eq("create_by", user.getId()); |
| | | } |
| | | |
| | | |
| | | |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(pakoutService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |