车型项目库法规清单关联平台件表-批量添加

This commit is contained in:
zhn
2023-09-22 17:27:30 +08:00
parent 79bc3c8544
commit 8510a049e2
@@ -14,6 +14,7 @@ import com.jero.modules.project.service.ILawsInventoryPlatformEOService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
@@ -113,7 +114,13 @@ public class LawsInventoryPlatformEOController extends JeroController<LawsInvent
lawsInventoryPlatformEOS.add(inventoryPlatformEO);
}
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);
}
/**