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;
@Column(ignore = true)
@JSONField(serialize = false)
@ApiModelProperty(value = "分页大小")
protected int pageSize;
@Column(ignore = true)
@JSONField(serialize = false)
@ApiModelProperty(value = "分页页码")
protected int pageNum;

View File

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

View File

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