AdminShipmentDetailController.java
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.huaheng.pc.shipment.shipmentDetail.controller;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.page.TableDataInfo;
import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail;
import com.huaheng.pc.shipment.shipmentDetail.service.IShipmentDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 出库明细 信息操作处理
*
* @author huaheng
* @date 2018-08-19
*/
@Controller
@RequestMapping("/admin/shipmentDetail")
public class AdminShipmentDetailController extends BaseController
{
private String prefix = "admin/shipmentDetail";
@Autowired
private IShipmentDetailService shipmentDetailService;
@GetMapping("/{shipmentId}/{shipmentCode}")
public String shipmentDetail(@PathVariable("shipmentId") String shipmentId, @PathVariable("shipmentCode") String shipmentCode,@PathVariable("inventoryStatus") String inventoryStatus, ModelMap mmap)
{
mmap.put("receiptId", shipmentId);
mmap.put("shipmentCode", shipmentCode);
mmap.put("inventoryStatus",inventoryStatus);
return prefix + "/shipmentDetail";
}
/**
* 查询出库明细列表
*/
@Log(title = "出库-出库单", operating= "查看出库明细", action = BusinessType.GRANT)
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ShipmentDetail shipmentDetail)
{
shipmentDetail.setDeleted(false);
startPage();
List<ShipmentDetail> list = shipmentDetailService.selectListEntityByLike(shipmentDetail) ;
return getDataTable(list);
}
}