|
@@ -5,7 +5,6 @@ import com.jsh.erp.base.AjaxResult;
|
|
import com.jsh.erp.base.BaseController;
|
|
import com.jsh.erp.base.BaseController;
|
|
import com.jsh.erp.base.TableDataInfo;
|
|
import com.jsh.erp.base.TableDataInfo;
|
|
import com.jsh.erp.datasource.entities.DepotHead;
|
|
import com.jsh.erp.datasource.entities.DepotHead;
|
|
-import com.jsh.erp.datasource.entities.DepotItem;
|
|
|
|
import com.jsh.erp.datasource.entities.Supplier;
|
|
import com.jsh.erp.datasource.entities.Supplier;
|
|
import com.jsh.erp.datasource.pda.dto.PDADepotHeadDTO;
|
|
import com.jsh.erp.datasource.pda.dto.PDADepotHeadDTO;
|
|
import com.jsh.erp.datasource.pda.vo.PDADepotHeadVO;
|
|
import com.jsh.erp.datasource.pda.vo.PDADepotHeadVO;
|
|
@@ -74,13 +73,31 @@ public class PdaController extends BaseController {
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiModelProperty("订单开始处理")
|
|
|
|
|
|
+ @ApiOperation("订单开始处理")
|
|
@GetMapping("/orderStartHandle/{id}")
|
|
@GetMapping("/orderStartHandle/{id}")
|
|
public AjaxResult orderStartHandle(@PathVariable("id") Long id) {
|
|
public AjaxResult orderStartHandle(@PathVariable("id") Long id) {
|
|
depotHeadService.update(new UpdateWrapper<DepotHead>().set("status", "4").eq("id", id));
|
|
depotHeadService.update(new UpdateWrapper<DepotHead>().set("status", "4").eq("id", id));
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("商品详情")
|
|
|
|
+ @GetMapping("/materialDetail/{id}")
|
|
|
|
+ public AjaxResult materialDetail(@PathVariable("id") Long id) {
|
|
|
|
+ return AjaxResult.success(depotItemService.pdaDetail(id));
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ @ApiOperation("商品库存详情")
|
|
|
|
+ @GetMapping("/materialDepotDetail/{type}/{materialId}")
|
|
|
|
+ public TableDataInfo materialDepotDetail(@PathVariable("type") String type, @PathVariable("materialId") Long materialId) {
|
|
|
|
+ startPage();
|
|
|
|
+ List<PDADepotItemVO> list = depotItemService.materialDepotDetail(type , materialId);
|
|
|
|
+ return getDataTable(list);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("用于返回字段说明")
|
|
|
|
+ @GetMapping("test")
|
|
|
|
+ public AjaxResult test(PDADepotItemVO pdaDepotItemVO) {
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|