|
|
|
@ -9,6 +9,7 @@ import com.hai.model.ResponseData; |
|
|
|
|
import com.hai.service.HighGoldRecService; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
|
import org.slf4j.Logger; |
|
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -19,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
@ -50,11 +52,9 @@ public class HighGoldRecController { |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("goldType", goldType); |
|
|
|
|
map.put("resType", resType); |
|
|
|
|
map.put("createTimeS", createTimeS); |
|
|
|
|
map.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
|
|
if (createTimeS != null) { |
|
|
|
|
map.put("createTimeS", DateUtil.long2Date(createTimeS)); |
|
|
|
|
map.put("createTimeE", DateUtil.long2Date(createTimeE)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highGoldRecService.getGoldRec(map))); |
|
|
|
@ -77,8 +77,9 @@ public class HighGoldRecController { |
|
|
|
|
map.put("goldType", goldType); |
|
|
|
|
map.put("resType", resType); |
|
|
|
|
if (createTimeS != null) { |
|
|
|
|
map.put("createTimeS", DateUtil.long2Date(createTimeS)); |
|
|
|
|
map.put("createTimeE", DateUtil.long2Date(createTimeE)); |
|
|
|
|
map.put("createTimeS", DateUtil.date2String(new Date(createTimeS), "yyyy-MM-dd")); |
|
|
|
|
map.put("createTimeE", DateUtil.date2String(new Date(createTimeE), "yyyy-MM-dd")); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return ResponseMsgUtil.success(highGoldRecService.queryGold(map)); |
|
|
|
|
|
|
|
|
|