|  |  |  | 
|---|
|  |  |  | Constants.smsContent smsContent = Constants.smsContent.getSmsContent(type); | 
|---|
|  |  |  | Map<String,Object> tempParam = new HashMap<>(); | 
|---|
|  |  |  | if(smsContent.getName().indexOf("time1")>=Constants.ZERO){ | 
|---|
|  |  |  | tempParam.put("time1", DateUtil.formatDate(orders.getStartDate(),"MM-dd")); | 
|---|
|  |  |  | tempParam.put("time1", DateUtil.formatDate(orders.getStartDate(),"yyyy-MM-dd")+" "); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(smsContent.getName().indexOf("time2")>=Constants.ZERO){ | 
|---|
|  |  |  | tempParam.put("time2", DateUtil.formatDate(orders.getEndDate(),"MM-dd")); | 
|---|
|  |  |  | tempParam.put("time2", " "+DateUtil.formatDate(orders.getEndDate(),"yyyy-MM-dd")); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(smsContent.getName().indexOf("money")>=Constants.ZERO){ | 
|---|
|  |  |  | tempParam.put("money", new BigDecimal(orders.getReceiveAccount().toString()).divide(new BigDecimal("100"),2,BigDecimal.ROUND_HALF_UP)+"元"); | 
|---|