修改导入提示信息

This commit is contained in:
高嵩
2023-04-02 15:26:19 +08:00
parent ab38f28e70
commit 6b95799a24
15 changed files with 15 additions and 2 deletions
@@ -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];
@@ -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];
@@ -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];
@@ -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];
@@ -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];
@@ -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) {
@@ -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("\\?");
@@ -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];
@@ -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) {
@@ -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];
@@ -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("\\?");
@@ -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("\\?");
@@ -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];
@@ -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("\\?");
@@ -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)) {