|
@@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -44,6 +45,17 @@ public class TWarehouseAgreementitemsController extends BaseController {
|
|
*/
|
|
*/
|
|
@GetMapping("/warehousebills/list")
|
|
@GetMapping("/warehousebills/list")
|
|
public TableDataInfo list(TWarehouseAgreementitem tWarehouseAgreementitem) {
|
|
public TableDataInfo list(TWarehouseAgreementitem tWarehouseAgreementitem) {
|
|
|
|
+ if(null!=tWarehouseAgreementitem.getfTaskType() && tWarehouseAgreementitem.getfTaskType() == 1 ){
|
|
|
|
+ if(tWarehouseAgreementitem.getfFleet()==null || tWarehouseAgreementitem.getfFleet().equals("") ){
|
|
|
|
+ List<Map<String, Object>> list = new ArrayList<>();
|
|
|
|
+ return getDataTable(list);
|
|
|
|
+ }
|
|
|
|
+ } else if(null!=tWarehouseAgreementitem.getfTaskType() && tWarehouseAgreementitem.getfTaskType() == 2) {
|
|
|
|
+ if(tWarehouseAgreementitem.getfLabour()==null || tWarehouseAgreementitem.getfLabour().equals("") ){
|
|
|
|
+ List<Map<String, Object>> list = new ArrayList<>();
|
|
|
|
+ return getDataTable(list);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
startPage();
|
|
startPage();
|
|
List<Map<String, Object>> list = tWarehouseAgreementitemsService.selectTWarehouseAgreementitemList(tWarehouseAgreementitem);
|
|
List<Map<String, Object>> list = tWarehouseAgreementitemsService.selectTWarehouseAgreementitemList(tWarehouseAgreementitem);
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|