|
|
|
@ -11,14 +11,19 @@ import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tenant.annotation.NonDS; |
|
|
|
import org.springblade.core.tenant.annotation.NonDS; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
|
|
|
import org.springblade.desk.oem.pojo.request.PriceSheetPageQuery; |
|
|
|
import org.springblade.desk.oem.pojo.request.PriceSheetQuery; |
|
|
|
import org.springblade.desk.oem.pojo.request.PriceSheetQuery; |
|
|
|
import org.springblade.desk.oem.pojo.vo.PriceSheetVO; |
|
|
|
import org.springblade.desk.oem.pojo.vo.PriceSheetVO; |
|
|
|
import org.springblade.erpdata.service.IErpDataOemService; |
|
|
|
import org.springblade.erpdata.service.IErpDataOemService; |
|
|
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
|
|
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -42,11 +47,10 @@ public class ErpDataOemClientImpl implements IErpDataOemClient { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@GetMapping(PRICE_SHEET_DATA) |
|
|
|
@PostMapping(PRICE_SHEET_DATA) |
|
|
|
public R<Page<PriceSheetVO>> priceSheetData(@SpringQueryMap PriceSheetQuery priceSheetQuery) { |
|
|
|
public R<Page<PriceSheetVO>> priceSheetData(@RequestBody PriceSheetPageQuery priceSheetPageQuery) { |
|
|
|
Query query = new Query() {{ |
|
|
|
PriceSheetQuery priceSheetQuery = priceSheetPageQuery.getPriceSheetQuery(); |
|
|
|
setSize(99999); |
|
|
|
Query query = priceSheetPageQuery.getQuery(); |
|
|
|
}}; |
|
|
|
|
|
|
|
IPage<PriceSheetVO> iPages = erpDataOemService.priceSheetData(Condition.getPage(query), priceSheetQuery); |
|
|
|
IPage<PriceSheetVO> iPages = erpDataOemService.priceSheetData(Condition.getPage(query), priceSheetQuery); |
|
|
|
Page<PriceSheetVO> pages = new Page<>(); |
|
|
|
Page<PriceSheetVO> pages = new Page<>(); |
|
|
|
|
|
|
|
|
|
|
|
@ -60,6 +64,13 @@ public class ErpDataOemClientImpl implements IErpDataOemClient { |
|
|
|
return R.data(pages); |
|
|
|
return R.data(pages); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
@GetMapping(PRICE_SHEET_DATA_ALL) |
|
|
|
|
|
|
|
public R<List<PriceSheetVO>> priceSheetDataAll(@SpringQueryMap PriceSheetQuery priceSheetQuery) { |
|
|
|
|
|
|
|
List<PriceSheetVO> list = erpDataOemService.priceSheetDataAll(priceSheetQuery); |
|
|
|
|
|
|
|
return R.data(list); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R<String> fullOrderOutsourcing(String v_prtno, String v_prtlotno, String v_splcode, String v_splycode, String v_seqcc, String v_sono, String v_planner, String v_pedate, Double v_woporqty, String v_pricetype) { |
|
|
|
public R<String> fullOrderOutsourcing(String v_prtno, String v_prtlotno, String v_splcode, String v_splycode, String v_seqcc, String v_sono, String v_planner, String v_pedate, Double v_woporqty, String v_pricetype) { |
|
|
|
Date pedate = DateUtil.parse(v_pedate, "yyyy-MM-dd HH:mm:ss"); |
|
|
|
Date pedate = DateUtil.parse(v_pedate, "yyyy-MM-dd HH:mm:ss"); |
|
|
|
|