Finish Task #4531 Cost:4h  修复复制合同开票单位错误

This commit is contained in:
时间淡忘一切 2023-11-27 17:13:06 +08:00
parent 5831bace54
commit 4e400f4962
3 changed files with 3 additions and 5 deletions

View File

@ -43,12 +43,10 @@ public class BaseEntity {
private Date updateTime; private Date updateTime;
@Column(ignore = true) @Column(ignore = true)
@JSONField(serialize = false)
@ApiModelProperty(value = "分页大小") @ApiModelProperty(value = "分页大小")
protected int pageSize; protected int pageSize;
@Column(ignore = true) @Column(ignore = true)
@JSONField(serialize = false)
@ApiModelProperty(value = "分页页码") @ApiModelProperty(value = "分页页码")
protected int pageNum; protected int pageNum;

View File

@ -42,7 +42,7 @@ public class ExcelDicHandler implements IExcelDictHandler {
dictMap.put("dictValue", "前端"); dictMap.put("dictValue", "前端");
list.add(dictMap); list.add(dictMap);
dictMap = new HashMap<>(); dictMap = new HashMap<>();
dictMap.put("dictKey", "black"); dictMap.put("dictKey", "back");
dictMap.put("dictValue", "后端"); dictMap.put("dictValue", "后端");
list.add(dictMap); list.add(dictMap);
return list; return list;
@ -72,7 +72,7 @@ public class ExcelDicHandler implements IExcelDictHandler {
if ("前端".equals(String.valueOf(value))) { if ("前端".equals(String.valueOf(value))) {
return "front"; return "front";
} }
return "black"; return "back";
} else if (SysConstan.LANG.equals(dict)) { } else if (SysConstan.LANG.equals(dict)) {
if ("中文".equals(String.valueOf(value))) { if ("中文".equals(String.valueOf(value))) {
return "zh"; return "zh";

View File

@ -241,7 +241,7 @@ public class InternationalServiceImpl extends ServiceImpl<InternationalMapper, I
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new RuntimeException("导入失败"); throw new RuntimeException(e.getMessage());
} }
List<International> list = BeanUtil.copyToList(importList, International.class); List<International> list = BeanUtil.copyToList(importList, International.class);
boolean flag = saveBatch(list); boolean flag = saveBatch(list);