| | |
| | | import com.vincent.rsf.server.manager.service.WarehouseStockService; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | } else if (type.equals(ViewStockType.VIEW_STOCK_TYPE_WAREHOUSE.val)) { |
| | | wrapper.eq(ViewStockManage::getWarehouse, stock.getWarehouse()); |
| | | } else if (type.equals(ViewStockType.VIEW_STOCK_TYPE_FIELDSINDEX.val)) { |
| | | wrapper.eq(ViewStockManage::getFieldsIndex, stock.getFieldsIndex()); |
| | | if (StringUtils.isBlank(stock.getFieldsIndex())) { |
| | | wrapper.isNull(ViewStockManage::getFieldsIndex); |
| | | } else { |
| | | wrapper.eq(ViewStockManage::getFieldsIndex, stock.getFieldsIndex()); |
| | | } |
| | | } else { |
| | | wrapper.eq(ViewStockManage::getMatnrCode, stock.getMatnrCode()); |
| | | } |