|
|
@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
+import com.uas.platform.b2b.erp.model.ProdInOutRefreshPrice;
|
|
|
import com.uas.platform.b2b.erp.model.PurchaseProdInOut;
|
|
|
import com.uas.platform.b2b.erp.service.PurchaseProdInOutService;
|
|
|
import com.uas.platform.b2b.erp.support.ErpBufferedLogger;
|
|
|
@@ -69,4 +70,17 @@ public class PurchaseProdInOutController {
|
|
|
logger.log("反过账的采购验收单", "上传反过账的采购验收单", prodInOuts.size());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量更新采购验收单单价
|
|
|
+ *
|
|
|
+ * @param data
|
|
|
+ * @throws UnsupportedEncodingException
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/refreshPrice", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public void refreshPrice(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
+ String jsonStr = URLDecoder.decode(data, "UTF-8");
|
|
|
+ List<ProdInOutRefreshPrice> prodInOuts = FlexJsonUtils.fromJsonArray(jsonStr, ProdInOutRefreshPrice.class);
|
|
|
+ purchaseAcceptService.save(purchaseProdInOutService.convertPirceForProdIn(prodInOuts));
|
|
|
+ }
|
|
|
}
|