去除多选日期时分秒
This commit is contained in:
+11
-4
@@ -24,10 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/${restPath}/sys/EarlyWarning")
|
||||
@@ -66,6 +63,16 @@ public class EarlyWarningEOController extends BaseController<EarlyWarningEO> {
|
||||
@ApiOperation("标准预警查询")
|
||||
public ResponseMessage<IPage<StandWarningEO>> getStandWaring(StandWarningEO queryPageEO){
|
||||
IPage<StandWarningEO> standWarning = earlyWarningEOService.getStandWarning(queryPageEO);
|
||||
standWarning.getRecords().forEach(item->{
|
||||
|
||||
Optional.ofNullable(item.getSSRQ())
|
||||
.ifPresent(SSRQ -> item.setSSRQ(item.getSSRQ().replaceAll("\\s[0-6][0-9]\\:[0-6][0-9]\\:[0-6][0-9]", "")));
|
||||
Optional.ofNullable(item.getXCXSSRQ())
|
||||
.ifPresent(SSRQ ->item.setXCXSSRQ(item.getXCXSSRQ().replaceAll("\\s[0-6][0-9]\\:[0-6][0-9]\\:[0-6][0-9]", "")));
|
||||
Optional.ofNullable(item.getZCCSSRQ())
|
||||
.ifPresent(SSRQ ->item.setZCCSSRQ(item.getZCCSSRQ().replaceAll("\\s[0-6][0-9]\\:[0-6][0-9]\\:[0-6][0-9]", "")));
|
||||
|
||||
});
|
||||
return Result.success(standWarning);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user