wwh 10 ay önce
ebeveyn
işleme
26f47ada5a

+ 2 - 3
huimv-receive/src/main/java/com/huimv/receive/controller/BillGoodsInventoryController.java

@@ -38,9 +38,8 @@ public class BillGoodsInventoryController {
     @RequestMapping("/edit")
     public Result edit(HttpServletRequest httpServletRequest, @RequestParam("id") String id,
                        @RequestParam("goods") String goods,
-                       @RequestParam("imgUrl")MultipartFile imgUrl,
-                       @RequestParam("wayType")String wayType) throws IOException {
-        return goodsInventoryService.edit(httpServletRequest, id,goods,imgUrl,wayType);
+                       @RequestParam("imgUrl")MultipartFile imgUrl) throws IOException {
+        return goodsInventoryService.edit(httpServletRequest, id,goods,imgUrl);
     }
 
     @RequestMapping("/list")

+ 1 - 1
huimv-receive/src/main/java/com/huimv/receive/service/IBillGoodsInventoryService.java

@@ -20,7 +20,7 @@ import java.util.Map;
 public interface IBillGoodsInventoryService extends IService<BillGoodsInventory> {
     Result listAll(HttpServletRequest httpServletRequest, Map<String, String> paramsMap);
 
-    Result edit(HttpServletRequest httpServletRequest, String id, String goods, MultipartFile imgUrl, String wayType) throws IOException;
+    Result edit(HttpServletRequest httpServletRequest, String id, String goods, MultipartFile imgUrl/*, String wayType*/) throws IOException;
 
     Result list(HttpServletRequest httpServletRequest, Map<String, String> paramsMap);
 }

+ 2 - 2
huimv-receive/src/main/java/com/huimv/receive/service/impl/BillGoodsInventoryServiceImpl.java

@@ -75,7 +75,7 @@ public class BillGoodsInventoryServiceImpl extends ServiceImpl<BillGoodsInventor
     }
 
     @Override
-    public Result edit(HttpServletRequest httpServletRequest, String id, String goods, MultipartFile imgUrl, String wayType) throws IOException {
+    public Result edit(HttpServletRequest httpServletRequest, String id, String goods, MultipartFile imgUrl/*, String wayType*/) throws IOException {
 
         DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
         BillGoodsInventory goodsInventory = inventoryMapper.selectById(id);
@@ -98,7 +98,7 @@ public class BillGoodsInventoryServiceImpl extends ServiceImpl<BillGoodsInventor
         goodsInventory.setGoodsUnit(goodsUnit);
         goodsInventory.setBillStatus(1);
         goodsInventory.setSubDate(LocalDateTime.now());
-        goodsInventory.setWayType(wayType);
+//        goodsInventory.setWayType(wayType);
         if (ObjectUtil.isNotEmpty(imgUrl)) {
             if (uploadImage.getImageCom(imgUrl).equals("上传失败")) {
                 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();