zoujiajian há 1 ano atrás
pai
commit
a25bc4b881

+ 6 - 2
netflix-web/src/main/java/com/cyksj/web/controller/manage/distribute/DistributeController.java

@@ -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");