修改导入提示信息
This commit is contained in:
+1
@@ -204,6 +204,7 @@ public class OtaBaCxAqcsController extends JeroController<OtaBaCxAqcs, IOtaBaCxA
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
OtaBaCxAqcs res;
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -197,6 +197,7 @@ public class OtaBaCxJbxxController extends JeroController<OtaBaCxJbxx, IOtaBaCxJ
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
OtaBaCxJbxx res;
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -200,6 +200,7 @@ public class OtaBaCxJsfzbacsController extends JeroController<OtaBaCxJsfzbacs, I
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -201,6 +201,7 @@ public class OtaBaCxKsjjsmccsController extends JeroController<OtaBaCxKsjjsmccs,
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -203,6 +203,7 @@ public class OtaBaCxKsjxtmccsController extends JeroController<OtaBaCxKsjxtmccs,
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
-1
@@ -238,7 +238,7 @@ public class OtaBaCxListController extends JeroController<OtaBaCxList, IOtaBaCxL
|
||||
public Result<?> importData(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
@RequestParam(value = "cut", required = false) String cut) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功! 提示信息:");
|
||||
errMsg.append("导入成功! ");
|
||||
try {
|
||||
this.otaBaCxListService.importData(file, cut, errMsg);
|
||||
} catch (Exception e) {
|
||||
|
||||
+1
@@ -198,6 +198,7 @@ public class OtaBaCxZxsjyqController extends JeroController<OtaBaCxZxsjyq, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
OtaBaCxZxsjyq res;
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
|
||||
+1
@@ -203,6 +203,7 @@ public class OtaBaSjGgnrfsController extends JeroController<OtaBaSjGgnrfs, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -234,6 +234,7 @@ public class OtaBaSjListController extends JeroController<OtaBaSjList, IOtaBaSjL
|
||||
public Result<?> importData(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
@RequestParam(value = "cut", required = false) String cut) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
this.otaBaSjListService.importData(file, cut, errMsg);
|
||||
} catch (Exception e) {
|
||||
|
||||
+1
@@ -201,6 +201,7 @@ public class OtaBaSjSjfzbhController extends JeroController<OtaBaSjSjfzbh, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -196,6 +196,7 @@ public class OtaBaSjSjmbclController extends JeroController<OtaBaSjSjmbcl, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
OtaBaSjSjmbcl res;
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
|
||||
+1
@@ -197,6 +197,7 @@ public class OtaBaSjSjmbcxController extends JeroController<OtaBaSjSjmbcx, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
OtaBaSjSjmbcx res;
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
|
||||
+1
@@ -203,6 +203,7 @@ public class OtaBaSjSjxtbhController extends JeroController<OtaBaSjSjxtbh, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
otaId = params[0].equals("null") ? "" : params[0];
|
||||
|
||||
+1
@@ -202,6 +202,7 @@ public class OtaBaSjSjyxpgController extends JeroController<OtaBaSjSjyxpg, IOtaB
|
||||
@RequestParam(value = "cut", required = false) String cut,
|
||||
@RequestParam(value = "otaId", required = false) String otaId) throws Exception {
|
||||
StringBuilder errMsg = new StringBuilder();
|
||||
errMsg.append("导入成功!");
|
||||
OtaBaSjSjyxpg res;
|
||||
try {
|
||||
String[] params = otaId.split("\\?");
|
||||
|
||||
+1
-1
@@ -155,7 +155,7 @@ public class ImportFileUtil {
|
||||
return "";
|
||||
}
|
||||
|
||||
public static Integer getCellValueYesOrNoInt(Cell cell, Workbook workbook) throws Exception {
|
||||
public static Integer getCellValueHaveOrNotInt(Cell cell, Workbook workbook) throws Exception {
|
||||
Integer res = null;
|
||||
String str = getCellValueYesOrNo(cell, workbook);
|
||||
if (StringUtils.isNotEmpty(str)) {
|
||||
|
||||
Reference in New Issue
Block a user