|
|
|
@@ -158,8 +158,11 @@ public class WxCUserBasicSignServiceImpl implements WxCUserBasicSignService { |
|
|
|
}else{ |
|
|
|
map.put("continueSign",0); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
map.put("continueSign",0); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if(lastSignIn != null && DateUtils.isSameMonth(lastSignIn.getSigninDate(),new Date())){ |
|
|
|
// //本月连续签到天数 |
|
|
|
// map.put("continueMonthSign",lastSignIn.getContinueMonthSign()); |
|
|
|
@@ -176,27 +179,27 @@ public class WxCUserBasicSignServiceImpl implements WxCUserBasicSignService { |
|
|
|
}else{ |
|
|
|
map.put("signInDay",0); |
|
|
|
} |
|
|
|
//7日连续 |
|
|
|
wxCreditHistory.setCreditType(EnumScoreType.SIGN_IN_SEVENDAY.getCode()); |
|
|
|
if(wxCreditHistoryMapper.monthCount(wxCreditHistory) > 0 ){ |
|
|
|
map.put("signInSevenDay",1); |
|
|
|
}else{ |
|
|
|
map.put("signInSevenDay",0); |
|
|
|
} |
|
|
|
//14日连续 |
|
|
|
wxCreditHistory.setCreditType(EnumScoreType.SIGN_IN_FTDAY.getCode()); |
|
|
|
if(wxCreditHistoryMapper.monthCount(wxCreditHistory) > 0 ){ |
|
|
|
map.put("signInFTDay",1); |
|
|
|
}else{ |
|
|
|
map.put("signInFTDay",0); |
|
|
|
} |
|
|
|
//28日连续 |
|
|
|
wxCreditHistory.setCreditType(EnumScoreType.SIGN_IN_TEDAY.getCode()); |
|
|
|
if(wxCreditHistoryMapper.monthCount(wxCreditHistory) > 0 ){ |
|
|
|
map.put("signInTEDay",1); |
|
|
|
}else{ |
|
|
|
map.put("signInTEDay",0); |
|
|
|
} |
|
|
|
// //7日连续 |
|
|
|
// wxCreditHistory.setCreditType(EnumScoreType.SIGN_IN_SEVENDAY.getCode()); |
|
|
|
// if(wxCreditHistoryMapper.monthCount(wxCreditHistory) > 0 ){ |
|
|
|
// map.put("signInSevenDay",1); |
|
|
|
// }else{ |
|
|
|
// map.put("signInSevenDay",0); |
|
|
|
// } |
|
|
|
// //14日连续 |
|
|
|
// wxCreditHistory.setCreditType(EnumScoreType.SIGN_IN_FTDAY.getCode()); |
|
|
|
// if(wxCreditHistoryMapper.monthCount(wxCreditHistory) > 0 ){ |
|
|
|
// map.put("signInFTDay",1); |
|
|
|
// }else{ |
|
|
|
// map.put("signInFTDay",0); |
|
|
|
// } |
|
|
|
// //28日连续 |
|
|
|
// wxCreditHistory.setCreditType(EnumScoreType.SIGN_IN_TEDAY.getCode()); |
|
|
|
// if(wxCreditHistoryMapper.monthCount(wxCreditHistory) > 0 ){ |
|
|
|
// map.put("signInTEDay",1); |
|
|
|
// }else{ |
|
|
|
// map.put("signInTEDay",0); |
|
|
|
// } |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|
|