|
@@ -5,6 +5,7 @@ import lombok.AllArgsConstructor;
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.tool.utils.Func;
|
|
import org.springblade.core.tool.utils.Func;
|
|
|
|
|
+import org.springframework.cloud.openfeign.SpringQueryMap;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springblade.estate.entity.NoticePushRecord;
|
|
import org.springblade.estate.entity.NoticePushRecord;
|
|
@@ -33,24 +34,24 @@ public class NoticePushRecordClient implements INoticePushRecordClient {
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
@GetMapping("/detail")
|
|
@GetMapping("/detail")
|
|
|
- public NoticePushRecordVO detail(NoticePushRecord noticePushRecord) {
|
|
|
|
|
|
|
+ public NoticePushRecordVO detail(@SpringQueryMap NoticePushRecord noticePushRecord) {
|
|
|
NoticePushRecord detail = noticePushRecordService.getOne(Condition.getQueryWrapper(noticePushRecord));
|
|
NoticePushRecord detail = noticePushRecordService.getOne(Condition.getQueryWrapper(noticePushRecord));
|
|
|
return NoticePushRecordWrapper.build().entityVO(detail);
|
|
return NoticePushRecordWrapper.build().entityVO(detail);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 查询
|
|
|
|
|
|
|
+ * 查询
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
- public List<NoticePushRecordVO> list(NoticePushRecord noticePushRecord) {
|
|
|
|
|
|
|
+ public List<NoticePushRecordVO> list(@SpringQueryMap NoticePushRecord noticePushRecord) {
|
|
|
return NoticePushRecordWrapper.build().listVO(noticePushRecordService.list(Condition.getQueryWrapper(noticePushRecord)));
|
|
return NoticePushRecordWrapper.build().listVO(noticePushRecordService.list(Condition.getQueryWrapper(noticePushRecord)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 新增
|
|
|
|
|
|
|
+ * 新增
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
@@ -59,7 +60,7 @@ public class NoticePushRecordClient implements INoticePushRecordClient {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 修改
|
|
|
|
|
|
|
+ * 修改
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
@PostMapping("/update")
|
|
@PostMapping("/update")
|
|
@@ -68,7 +69,7 @@ public class NoticePushRecordClient implements INoticePushRecordClient {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 新增或修改
|
|
|
|
|
|
|
+ * 新增或修改
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
@PostMapping("/submit")
|
|
@PostMapping("/submit")
|
|
@@ -76,9 +77,9 @@ public class NoticePushRecordClient implements INoticePushRecordClient {
|
|
|
return noticePushRecordService.saveOrUpdate(noticePushRecord);
|
|
return noticePushRecordService.saveOrUpdate(noticePushRecord);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
- * 删除
|
|
|
|
|
|
|
+ * 删除
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
@PostMapping("/remove")
|
|
@PostMapping("/remove")
|
|
@@ -86,5 +87,5 @@ public class NoticePushRecordClient implements INoticePushRecordClient {
|
|
|
return noticePushRecordService.deleteLogic(Func.toLongList(ids));
|
|
return noticePushRecordService.deleteLogic(Func.toLongList(ids));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|