Commit d87dd934b20d062cfcba7f24cc1ca2d4b71f0a1e
Committed by
GitHub
Merge pull request #228 from xiaohe4966/master
修复生成代码测试里面的时间问题(buildBetweenTime方法)
Showing
2 changed files
with
3 additions
and
0 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/service/codegen/inner/CodegenEngine.java
| ... | ... | @@ -11,6 +11,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 11 | 11 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 12 | 12 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; |
| 13 | 13 | import cn.iocoder.yudao.framework.common.util.date.DateUtils; |
| 14 | +import cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils; | |
| 14 | 15 | import cn.iocoder.yudao.framework.common.util.object.ObjectUtils; |
| 15 | 16 | import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; |
| 16 | 17 | import cn.iocoder.yudao.framework.excel.core.convert.DictConvert; |
| ... | ... | @@ -136,6 +137,7 @@ public class CodegenEngine { |
| 136 | 137 | globalBindingMap.put("ServiceExceptionUtilClassName", ServiceExceptionUtil.class.getName()); |
| 137 | 138 | globalBindingMap.put("DateUtilsClassName", DateUtils.class.getName()); |
| 138 | 139 | globalBindingMap.put("ExcelUtilsClassName", ExcelUtils.class.getName()); |
| 140 | + globalBindingMap.put("LocalDateTimeUtilsClassName", LocalDateTimeUtils.class.getName()); | |
| 139 | 141 | globalBindingMap.put("ObjectUtilsClassName", ObjectUtils.class.getName()); |
| 140 | 142 | globalBindingMap.put("DictConvertClassName", DictConvert.class.getName()); |
| 141 | 143 | globalBindingMap.put("OperateLogClassName", OperateLog.class.getName()); | ... | ... |
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/test/serviceTest.vm
| ... | ... | @@ -22,6 +22,7 @@ import static cn.hutool.core.util.RandomUtil.*; |
| 22 | 22 | import static ${basePackage}.module.${table.moduleName}.enums.ErrorCodeConstants.*; |
| 23 | 23 | import static ${baseFrameworkPackage}.test.core.util.AssertUtils.*; |
| 24 | 24 | import static ${baseFrameworkPackage}.test.core.util.RandomUtils.*; |
| 25 | +import static ${LocalDateTimeUtilsClassName}.*; | |
| 25 | 26 | import static ${ObjectUtilsClassName}.*; |
| 26 | 27 | import static ${DateUtilsClassName}.*; |
| 27 | 28 | import static org.junit.jupiter.api.Assertions.*; | ... | ... |