| | |
| | | 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; |
| | |
| | | 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 |