提交 55aee94d 作者: 轩辕玉

解决打包驱动问题

上级 105e63f2
...@@ -115,6 +115,32 @@ ...@@ -115,6 +115,32 @@
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<finalName>${project.artifactId}</finalName>
<resources>
<!-- 打包时 maven 默认只打包 src/main/resource 下的资源 -->
<!-- 这里自定义要打包的资源文maven件的路径,一般是 Mapper 文件的位置 -->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>${project.basedir}/lib</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
</build> </build>
</project> </project>
...@@ -102,7 +102,7 @@ public class RecExcel { ...@@ -102,7 +102,7 @@ public class RecExcel {
* 按需填写 * 按需填写
*/ */
@ExcelProperty("备注") @ExcelProperty("备注")
private String remark; private String remark = "福建省农业有害生物监控系统";
/** /**
* 临时字段:业务更新年月/年月日 * 临时字段:业务更新年月/年月日
......
...@@ -244,6 +244,23 @@ public class RecService { ...@@ -244,6 +244,23 @@ public class RecService {
} }
public ReturnValue testAddXmlToWebService() { public ReturnValue testAddXmlToWebService() {
SqlSession session = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
RecMapper recMapper = session.getMapper(RecMapper.class);
try {
List<RecExcel> recAll1 = recMapper.getRecAll1("SD_MS_DFS");
logger.info("查询测试结果:" + recAll1);
session.commit();
}catch (Exception e) {
session.rollback();
} finally {
if (session != null) {
session.close();
}
}
ReturnValue rvt = new ReturnValue(); ReturnValue rvt = new ReturnValue();
List<RecExcel> list = createTestRecExcelData(); List<RecExcel> list = createTestRecExcelData();
String type = "add"; String type = "add";
...@@ -277,6 +294,9 @@ public class RecService { ...@@ -277,6 +294,9 @@ public class RecService {
recExcel.setExecDate(new Date()); recExcel.setExecDate(new Date());
recExcel.setRecItem("IDX2创建时间月统计值"); recExcel.setRecItem("IDX2创建时间月统计值");
recExcel.setDataTimeStr(""); recExcel.setDataTimeStr("");
recExcel.setValue(100L);
recExcel.setDataArea("");
recExcel.setOtherDimension("");
recExcel.setLatestUpdateDate(new Date()); recExcel.setLatestUpdateDate(new Date());
list.add(recExcel); list.add(recExcel);
return list; return list;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论