问题优化
This commit is contained in:
@ -104,7 +104,7 @@ public class HomePageServiceImpl implements IHomePageService
|
|||||||
int todayMonth = calendar.get(Calendar.MONTH) + 1;
|
int todayMonth = calendar.get(Calendar.MONTH) + 1;
|
||||||
int todayDay = calendar.get(Calendar.DAY_OF_MONTH);
|
int todayDay = calendar.get(Calendar.DAY_OF_MONTH);
|
||||||
if (StringUtils.isNotEmpty(pcsDate)){
|
if (StringUtils.isNotEmpty(pcsDate)){
|
||||||
String[] pcsDateArray = pcsDate.split("/");
|
String[] pcsDateArray = pcsDate.split("-");
|
||||||
if (todayMonth == Integer.parseInt(pcsDateArray[0]) &&
|
if (todayMonth == Integer.parseInt(pcsDateArray[0]) &&
|
||||||
todayDay == Integer.parseInt(pcsDateArray[1])) {
|
todayDay == Integer.parseInt(pcsDateArray[1])) {
|
||||||
flag = true;
|
flag = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user