Commit f6e74423 authored by wzp's avatar wzp

修改bug

parent 9c9ad17f
......@@ -145,14 +145,13 @@ public class ChinaMobileRestApiController extends BaseController {
@GetMapping("/equitment/activity")
//@RequiresAuthentication //@RequiresPermissions("/equitment/activity/")
public Map<String, Object> getActivity(@RequestParam(required = true) String mac) {
List<TBoxOperation> list;
try {
UpdateWrapper<TBoxOperation> wrapper = new UpdateWrapper<>();
wrapper.eq("mac", mac);
list = boxOperationService.list(wrapper);
TBoxOperation one = boxOperationService.getOne(wrapper);
HashMap<Object, Object> map = new HashMap<>();
map.put("activityStatus", false);
if (list != null && list.get(0) != null && 2 == list.get(0).getStatus()) {
if (one != null) {
map.put("activityStatus", true);
}
return getResult(map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment