|
|
@ -1,9 +1,13 @@
|
|
|
|
package com.op.mes.controller;
|
|
|
|
package com.op.mes.controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.op.mes.domain.MesUnitPrice;
|
|
|
|
import com.op.mes.domain.MesUnitpriceReport;
|
|
|
|
import com.op.mes.domain.MesUnitpriceReport;
|
|
|
|
|
|
|
|
import com.op.mes.service.IMesUnitPriceService;
|
|
|
|
import com.op.mes.service.IMesUnitpriceReportService;
|
|
|
|
import com.op.mes.service.IMesUnitpriceReportService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@ -34,6 +38,8 @@ import com.op.common.core.web.page.TableDataInfo;
|
|
|
|
public class MesUnitPriceReportController extends BaseController {
|
|
|
|
public class MesUnitPriceReportController extends BaseController {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IMesUnitpriceReportService mesUnitpriceReportService;
|
|
|
|
private IMesUnitpriceReportService mesUnitpriceReportService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IMesUnitPriceService mesUnitPriceService;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询计件工资统计列表
|
|
|
|
* 查询计件工资统计列表
|
|
|
@ -64,7 +70,16 @@ public class MesUnitPriceReportController extends BaseController {
|
|
|
|
@RequiresPermissions("unitPriceReport:report:query")
|
|
|
|
@RequiresPermissions("unitPriceReport:report:query")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
|
|
|
return success(mesUnitpriceReportService.selectMesUnitpriceReportById(id));
|
|
|
|
|
|
|
|
|
|
|
|
MesUnitpriceReport mup=mesUnitpriceReportService.selectMesUnitpriceReportById(id);
|
|
|
|
|
|
|
|
MesUnitPrice mesUnitPrice=new MesUnitPrice();
|
|
|
|
|
|
|
|
mesUnitPrice.setProductCode(mup.getProductCode().substring(mup.getProductCode().length() - 11));
|
|
|
|
|
|
|
|
mesUnitPrice.setLineCode(mup.getLineCode());
|
|
|
|
|
|
|
|
List<MesUnitPrice> list = mesUnitPriceService.selectMesUnitPriceList(mesUnitPrice);
|
|
|
|
|
|
|
|
Map map=new HashMap();
|
|
|
|
|
|
|
|
map.put("MesUnitpriceReport",mup);
|
|
|
|
|
|
|
|
map.put("MesUnitPriceInfo",list);
|
|
|
|
|
|
|
|
return success(map);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|