SQL code:
SELECT count (1) the from batch_stock_detail_his where DATE_FORMAT (at_time, '% % m - Y % d 00:00:00')=# {atTime}
Request parameters:
The Date atTime=DateUtils. Truncate (new Date (), Calendar, the Date);
Is now found in the March 31 to a mistake, other time is normal, don't understand why the null pointer, solve, thank you!
CodePudding user response:
On 31 May report errors, or as long as there are 31 is an errorCodePudding user response:
Look at the code there is no problemCodePudding user response: