zhangjinli 3 years ago
parent bab28e9366
commit 2c65ec1b6c

@ -85,7 +85,7 @@ public class StatisticsController {
return Result.success(adminMapper.statistics2(qw), "请求成功");
}
@Operation(summary = "排行列表")
@PostMapping("/date3")
@PostMapping("/data3")
@AdminTokenValid
public Result rankList(@Validated @RequestBody RankListDTO rankListDTO) {
return Result.success(rankService.rankList(rankListDTO), "请求成功");

@ -10,6 +10,7 @@ import com.zh.project0512.model.User;
import com.zh.project0512.model.UserAccount;
import com.zh.project0512.service.IUserAccountService;
import com.zh.project0512.service.IUserService;
import com.zh.project0512.utils.AppMessageUtil;
import com.zh.project0512.utils.CustomUtil;
import com.zh.project0512.utils.ExcelUtil;
import com.zh.project0512.utils.MybatisPlusUtil;
@ -22,6 +23,7 @@ import lombok.Data;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@ -140,6 +142,7 @@ public class UserAccountController {
@PostMapping("/valid")
@AdminTokenValid
@AdminCheckAuthorityAnnotation(jurisdictionId = "14")
@Transactional
public Result valid(@Validated @RequestBody PassUAParam param) {
UserAccount ua = userAccountService.getById(param.getId());
if (ua == null) {
@ -152,6 +155,7 @@ public class UserAccountController {
updateWrapper.eq("id", param.getId()).set("status", param.getStatus()).set("updateAt", LocalDateTime.now());
updateWrapper.set("reason", param.getStatus() == 2 ? param.getReason() : "");
userAccountService.update(updateWrapper);
// AppMessageUtil.sendMessage();
return Result.success("修改完成");
}
}

@ -23,8 +23,8 @@ import javax.annotation.Resource;
* @since 2022-05-26
*/
@RestController
@RequestMapping("/wxApp/appMessage")
@Tag(name = "app消息")
@RequestMapping("/wxApp/userMessage")
@Tag(name = "用户消息")
public class AppMessageController {
@Resource
IAppMessageService appMessageService;

@ -15,7 +15,7 @@ import org.apache.ibatis.annotations.Update;
*/
public interface TeachingRefeMapper extends BaseMapper<TeachingRefe> {
@Update("update teachingRefe set sortWeight = sortWeight + 1 where sortWeight <> 0;\n" +
"insert into teachingRefe ( fileUrl,type,title, creatAt,sortWeight) VALUES ( #{fileUrl},#{type},#{title}, #{creatAt},1 );")
"insert into teachingRefe ( fileUrl,type,title, creatAt,duration,sortWeight) VALUES ( #{fileUrl},#{type},#{title}, #{creatAt},#{duration},1 );")
void addTeachingRefe(TeachingRefe teachingRefe);
@Update("<script>" +
"update teachingRefe set sortWeight = -1 where sortWeight = #{origin};\n" +

Loading…
Cancel
Save