车型项目库法规清单关联平台件表-批量添加
This commit is contained in:
+8
-1
@@ -14,6 +14,7 @@ import com.jero.modules.project.service.ILawsInventoryPlatformEOService;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
@@ -113,7 +114,13 @@ public class LawsInventoryPlatformEOController extends JeroController<LawsInvent
|
|||||||
lawsInventoryPlatformEOS.add(inventoryPlatformEO);
|
lawsInventoryPlatformEOS.add(inventoryPlatformEO);
|
||||||
}
|
}
|
||||||
lawsInventoryPlatformEOService.addBatch(lawsInventoryPlatformEOS);
|
lawsInventoryPlatformEOService.addBatch(lawsInventoryPlatformEOS);
|
||||||
return Result.OK("添加成功!");
|
String msg = "";
|
||||||
|
if(ObjectUtils.isNotEmpty(json.get("msg"))){
|
||||||
|
msg = (String)json.get("msg");
|
||||||
|
}else{
|
||||||
|
msg = "添加成功!";
|
||||||
|
}
|
||||||
|
return Result.OK(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user