王佳豪
2021-06-07 752332b433e6ddd72f8e4dd551a0eeb2e3c0939b
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
package com.zy.asrs.controller;
 
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import com.zy.common.service.erp.ErpService;
import com.zy.common.service.erp.entity.CPICMO;
import com.zy.common.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.Date;
import java.util.List;
 
@RestController
public class ERPrelevantController extends BaseController {
    @Autowired
    private ErpService erpService;
 
    @RequestMapping(value = "/erp/cpicmo/query")
    @ManagerAuth
    public R add(String fbillNo, String fsourceBillNo) {
        List<CPICMO> erpCPICMOlist = erpService.queryErpCPICMO(fbillNo, fsourceBillNo);
        return R.ok().add(erpCPICMOlist);
    }
}