无关风月
3 天以前 b27efc697f2f81e0d0f247a2708e58af52a5df9b
cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/code/TAppUserController.java
@@ -25,8 +25,10 @@
import com.dsh.guns.config.UserExt;
import com.dsh.guns.modular.system.controller.util.MD5;
import com.dsh.guns.modular.system.model.*;
import com.dsh.guns.modular.system.model.dto.UpdateIntegral;
import com.dsh.guns.modular.system.service.*;
import com.dsh.guns.modular.system.util.ResultUtil;
import io.swagger.models.auth.In;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@@ -168,9 +170,26 @@
        model.addAttribute("students",tStudents);
        return PREFIX + "TAppUser_edit.html";
    }
    @RequestMapping("/changeIntegral/{id}")
    public String changeIntegral(Model model,@PathVariable("id") Integer id) {
        TAppUser data = appUserClient.queryById(id);
        model.addAttribute("data",data);
        return PREFIX + "TAppUser_changeIntegral.html";
    }
    @Autowired
    private WorldCupClient worldCupClient;
    @RequestMapping("/updateIntegral")
    @ResponseBody
    public ResultUtil updateIntegral(Integer id,Integer changeType, Integer integral, String remark){
        UpdateIntegral updateIntegral = new UpdateIntegral();
        updateIntegral.setId(id);
        updateIntegral.setChangeType(changeType);
        updateIntegral.setIntegral(integral);
        updateIntegral.setRemark(remark);
        System.err.println("积分修改是否成功:"+appUserClient.updateIntegral(updateIntegral));
        return ResultUtil.success();
    }
    /**
     * 获取所有用户信息
     * @return