zoujiajian 1 년 전
부모
커밋
a25bc4b881
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      netflix-web/src/main/java/com/cyksj/web/controller/manage/distribute/DistributeController.java

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