|
|
@@ -9,6 +9,7 @@ import com.mokamrp.privates.entity.DelHandle;
|
|
|
import com.mokamrp.privates.entity.EditHandle;
|
|
|
import com.mokamrp.privates.controller.BaseController;
|
|
|
import com.mokamrp.privates.entity.PostBasePageHandle;
|
|
|
+import com.mokamrp.privates.entity.pangu.GetForsterwxMobileHandle;
|
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxMobile;
|
|
|
@@ -61,11 +62,11 @@ public class FosterwxMobileController extends BaseController<FosterwxMobile> {
|
|
|
*/
|
|
|
|
|
|
@PostMapping("/list")
|
|
|
- public Object list(@Valid @RequestBody PostBasePageHandle postBasePageHandle, BindingResult bindingResult) {
|
|
|
+ public Object list(@Valid @RequestBody GetForsterwxMobileHandle getForsterwxMobileHandle, BindingResult bindingResult) {
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return AjaxResult.error(HttpStatus.ERROR, bindingResult.getFieldError().getDefaultMessage());
|
|
|
}
|
|
|
- Map<String, Object> res = fosterwxMobileService.getList(postBasePageHandle);
|
|
|
+ Map<String, Object> res = fosterwxMobileService.getList(getForsterwxMobileHandle);
|
|
|
return AjaxResult.success(res);
|
|
|
}
|
|
|
|
|
|
@@ -88,7 +89,7 @@ public class FosterwxMobileController extends BaseController<FosterwxMobile> {
|
|
|
fosterwxMobileService.save(addHandle.getRaw());
|
|
|
// 判断开始做任务时间是否设置了
|
|
|
AjaxResult ajaxResult = null;
|
|
|
- if (null != addHandle.getRaw().getTaskStartAt() && addHandle.getRaw().getWxStatus() != 2) {
|
|
|
+ if (null != addHandle.getRaw().getTaskStartAt()) {
|
|
|
ajaxResult = fosterwxTaskScheduleService.insertByTaskDate(addHandle.getRaw(), authUser, false);
|
|
|
}
|
|
|
|
|
|
@@ -134,7 +135,7 @@ public class FosterwxMobileController extends BaseController<FosterwxMobile> {
|
|
|
|
|
|
@PostMapping("/getMobileList")
|
|
|
public Object getMobileList(@RequestParam(name = "token") String token,
|
|
|
- @Valid @RequestBody PostBasePageHandle postBasePageHandle, BindingResult bindingResult) {
|
|
|
+ @Valid @RequestBody GetForsterwxMobileHandle getForsterwxMobileHandle, BindingResult bindingResult) {
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return AjaxResult.error(HttpStatus.ERROR, bindingResult.getFieldError().getDefaultMessage());
|
|
|
}
|
|
|
@@ -143,7 +144,7 @@ public class FosterwxMobileController extends BaseController<FosterwxMobile> {
|
|
|
if (fosterwxStation == null){
|
|
|
return AjaxResult.error(HttpStatus.LOGIN_ERROR, HttpMsg.needLogin);
|
|
|
}
|
|
|
- Map<String, Object> res = fosterwxMobileService.getListByStationId(postBasePageHandle.getPage(),postBasePageHandle.getPagesize(),fosterwxStation.getId());
|
|
|
+ Map<String, Object> res = fosterwxMobileService.getListByStationId(getForsterwxMobileHandle,fosterwxStation.getId());
|
|
|
return AjaxResult.success(res);
|
|
|
}
|
|
|
|