|
|
@@ -6,19 +6,16 @@ import com.mokamrp.privates.entity.PostBasePageHandle;
|
|
|
import com.mokamrp.privates.entity.SetIdsHandle;
|
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
|
import com.mokamrp.privates.entity.ResHandle;
|
|
|
-import org.apache.tomcat.jni.Local;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import com.mokamrp.privates.service.pangu.FosterwxMobileCashService;
|
|
|
-import com.mokamrp.privates.mapper.pangu.pojo.FosterwxMobileCash;
|
|
|
+import com.mokamrp.privates.service.pangu.FosterwxCashMobileService;
|
|
|
+import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashMobile;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import com.mokamrp.privates.controller.BaseController;
|
|
|
import javax.validation.Valid;
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.util.Map;
|
|
|
import java.util.List;
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
@@ -33,11 +30,11 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2021-10-08
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/pangu/fosterwxMobileCash")
|
|
|
-public class FosterwxMobileCashController extends BaseController<FosterwxMobileCash> {
|
|
|
+@RequestMapping("/fosterwxCashMobile")
|
|
|
+public class FosterwxCashMobileController extends BaseController<FosterwxCashMobile> {
|
|
|
|
|
|
@Autowired
|
|
|
- public FosterwxMobileCashService fosterwxMobileCashService;
|
|
|
+ public FosterwxCashMobileService fosterwxCashMobileService;
|
|
|
|
|
|
/*
|
|
|
* @fast
|
|
|
@@ -50,24 +47,20 @@ public class FosterwxMobileCashController extends BaseController<FosterwxMobileC
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return AjaxResult.error(HttpStatus.ERROR, bindingResult.getFieldError().getDefaultMessage());
|
|
|
}
|
|
|
- ResHandle<List<FosterwxMobileCash>> res = fosterwxMobileCashService.getList(postBasePageHandle);
|
|
|
+ ResHandle<List<FosterwxCashMobile>> res = fosterwxCashMobileService.getList(postBasePageHandle);
|
|
|
return AjaxResult.success(res);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@PostMapping("/setDomain")
|
|
|
- public Object setDoamin(@Valid @RequestBody SetIdsHandle setIdsHandle,BindingResult bindingResult){
|
|
|
+ public Object setDoamin(@Valid @RequestBody SetIdsHandle setIdsHandle, BindingResult bindingResult){
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
return AjaxResult.error(HttpStatus.ERROR, bindingResult.getFieldError().getDefaultMessage());
|
|
|
}
|
|
|
- FosterwxMobileCash save = new FosterwxMobileCash();
|
|
|
+ FosterwxCashMobile save = new FosterwxCashMobile();
|
|
|
save.setDomainId(setIdsHandle.getId());
|
|
|
save.setUpdateAt(LocalDateTime.now());
|
|
|
- fosterwxMobileCashService.update(save,new QueryWrapper<FosterwxMobileCash>().in("id",setIdsHandle.getIds()));
|
|
|
+ fosterwxCashMobileService.update(save,new QueryWrapper<FosterwxCashMobile>().in("id",setIdsHandle.getIds()));
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|