|
|
@@ -57,7 +57,7 @@ public class TemplateInfoController {
|
|
|
templateInfo.setCreateTime(new Date());
|
|
|
templateInfo.setStatus("0");
|
|
|
|
|
|
- if(templateInfo.getDateRangeArr()!=null) {
|
|
|
+ if (templateInfo.getDateRangeArr() != null) {
|
|
|
if (templateInfo.getDateRangeArr().length == 2) {
|
|
|
String start = templateInfo.getDateRangeArr()[0];
|
|
|
String end = templateInfo.getDateRangeArr()[1];
|
|
|
@@ -133,8 +133,8 @@ public class TemplateInfoController {
|
|
|
templateInfo.setUpdateTime(new Date());
|
|
|
|
|
|
if (templateInfo.getDateRangeArr().length == 2) {
|
|
|
- String start = templateInfo.getDateRangeArr()[0];
|
|
|
- String end = templateInfo.getDateRangeArr()[1];
|
|
|
+ String start = templateInfo.getDateRangeArr()[0] + "-01";
|
|
|
+ String end = templateInfo.getDateRangeArr()[1] + "-01";
|
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|