|
|
@@ -251,14 +251,18 @@ public class DistributeController {
|
|
|
String first = null;
|
|
|
String end = null;
|
|
|
if (firstDate != null) {
|
|
|
- if (chain == 3) {
|
|
|
+ if (chain == 2) {
|
|
|
+ first = DateUtil.format(DateTime.of(firstDate), "yyyy.MM.dd");
|
|
|
+ }else if (chain == 3) {
|
|
|
first = DateUtil.format(DateTime.of(firstDate), "yyyy-MM");
|
|
|
} else {
|
|
|
first = DateUtil.format(DateTime.of(firstDate), "yyyy-MM-dd");
|
|
|
}
|
|
|
}
|
|
|
if (lastDate != null) {
|
|
|
- if (chain == 3) {
|
|
|
+ if (chain == 2) {
|
|
|
+ end = DateUtil.format(DateTime.of(lastDate), "yyyy.MM.dd");
|
|
|
+ }else if (chain == 3) {
|
|
|
end = DateUtil.format(DateTime.of(lastDate), "yyyy-MM");
|
|
|
} else {
|
|
|
end = DateUtil.format(DateTime.of(lastDate), "yyyy-MM-dd");
|