feat: add core entities, controllers, services, and mappers across multi-module project
This commit is contained in:
commit
4335344af7
1456 files changed
+58308
No files matched your search
@@ -0,0 +1,34 @@
|
||||
package cn.unizk.controller;
|
||||
|
||||
import cn.unizk.entity.po.UserTreatmentParameters;
|
||||
import cn.unizk.mapper.UserTreatmentParametersMapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author hao
|
||||
* @Date 2026/5/8 11:50
|
||||
* @Version 1.0
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/pc/userTreat")
|
||||
public class UserTreatController {
|
||||
|
||||
@Resource
|
||||
private UserTreatmentParametersMapper userTreatmentParametersMapper;
|
||||
|
||||
@GetMapping("/lookTreat")
|
||||
public List<UserTreatmentParameters> lookTreat(@RequestParam(value = "deviceId",required = false) String deviceId){
|
||||
if (StringUtils.isBlank(deviceId)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return userTreatmentParametersMapper.selectList(new LambdaQueryWrapper<UserTreatmentParameters>()
|
||||
.eq(UserTreatmentParameters::getStatus,1).eq(UserTreatmentParameters::getDeviceId,deviceId));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user