|
|
|
@@ -55,8 +55,10 @@ public class WxRentContractController extends BaseController { |
|
|
|
public ResultData getDateDiff(String startDate, String endDate) throws Exception{ |
|
|
|
logger.debug("[" + getIpAddr() + "] WxRentContractController::getTimeDiff"); |
|
|
|
SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
int[] array = DateUtils.getDiff(sd.parse(startDate),sd.parse(endDate)); |
|
|
|
Map<String,Integer> map = new HashMap<>(); |
|
|
|
|
|
|
|
int[] array = DateUtils.getDiff(sd.parse(startDate),sd.parse(endDate)); |
|
|
|
|
|
|
|
map.put("month",array[0]); |
|
|
|
map.put("day",array[1]); |
|
|
|
return new ResultData(map); |
|
|
|
|