|
@@ -7,6 +7,7 @@ import com.gyee.runeconomy.init.CacheContext;
|
|
import com.gyee.runeconomy.model.auto.ProEconCleaningInput;
|
|
import com.gyee.runeconomy.model.auto.ProEconCleaningInput;
|
|
import com.gyee.runeconomy.service.auto.IProEconCleaningInputService;
|
|
import com.gyee.runeconomy.service.auto.IProEconCleaningInputService;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
@@ -42,8 +43,8 @@ public class ProEconCleaningInputController {
|
|
@ApiOperation(value = "清洗录入-列表", notes = "清洗录入-列表")
|
|
@ApiOperation(value = "清洗录入-列表", notes = "清洗录入-列表")
|
|
public R findList(@RequestParam(value = "windpowerstationId", required = false) String windpowerstationId,
|
|
public R findList(@RequestParam(value = "windpowerstationId", required = false) String windpowerstationId,
|
|
@RequestParam(value = "windpowerstationName", required = false) String windpowerstationName,
|
|
@RequestParam(value = "windpowerstationName", required = false) String windpowerstationName,
|
|
- @RequestParam(value = "begindate", required = false) Date begindate,
|
|
|
|
- @RequestParam(value = "planEnddate", required = false) Date planEnddate,
|
|
|
|
|
|
+ @RequestParam(value = "begindate", required = false) String begindate,
|
|
|
|
+ @RequestParam(value = "planEnddate", required = false) String planEnddate,
|
|
@RequestParam(value = "pageNum", required = true) String pageNum,
|
|
@RequestParam(value = "pageNum", required = true) String pageNum,
|
|
@RequestParam(value = "pageSize", required = true) String pageSize) {
|
|
@RequestParam(value = "pageSize", required = true) String pageSize) {
|
|
IPage<ProEconCleaningInput> list = proEconCleaningInputService.getList(windpowerstationId, windpowerstationName, begindate, planEnddate, pageNum, pageSize);
|
|
IPage<ProEconCleaningInput> list = proEconCleaningInputService.getList(windpowerstationId, windpowerstationName, begindate, planEnddate, pageNum, pageSize);
|
|
@@ -65,7 +66,7 @@ public class ProEconCleaningInputController {
|
|
|
|
|
|
boolean b = proEconCleaningInputService.saveOrUpdate(ProEconCleaningInput);
|
|
boolean b = proEconCleaningInputService.saveOrUpdate(ProEconCleaningInput);
|
|
if (b) {
|
|
if (b) {
|
|
- CacheContext.initPowerstationList();
|
|
|
|
|
|
+// CacheContext.initPowerstationList();
|
|
return R.ok().data(b);
|
|
return R.ok().data(b);
|
|
} else {
|
|
} else {
|
|
return R.error().data("保存失败!");
|
|
return R.error().data("保存失败!");
|
|
@@ -84,7 +85,7 @@ public class ProEconCleaningInputController {
|
|
String[] strings = ids.split(",");
|
|
String[] strings = ids.split(",");
|
|
boolean b = proEconCleaningInputService.removeByIds(Arrays.asList(strings));
|
|
boolean b = proEconCleaningInputService.removeByIds(Arrays.asList(strings));
|
|
if (b) {
|
|
if (b) {
|
|
- CacheContext.initPowerstationList();
|
|
|
|
|
|
+// CacheContext.initPowerstationList();
|
|
return R.ok().data(b);
|
|
return R.ok().data(b);
|
|
} else {
|
|
} else {
|
|
return R.error().data("删除失败!");
|
|
return R.error().data("删除失败!");
|