update
This commit is contained in:
@@ -58,6 +58,27 @@ public class ExperimentSampleInfoController extends JeecgController<ExperimentSa
|
|||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "试验样品信息-列表查询样品型号")
|
||||||
|
@GetMapping(value = "/listSampleModel")
|
||||||
|
public Result<List<ExperimentSampleInfo>> listSampleModel(HttpServletRequest req) {
|
||||||
|
List<ExperimentSampleInfo> pageList = experimentSampleInfoService.listSampleModel();
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "试验样品信息-列表查询样品批次")
|
||||||
|
@GetMapping(value = "/listSampleBatch")
|
||||||
|
public Result<List<ExperimentSampleInfo>> listSampleBatch(HttpServletRequest req) {
|
||||||
|
List<ExperimentSampleInfo> pageList = experimentSampleInfoService.listSampleBatch();
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "试验样品信息-分页列表名称型号")
|
||||||
|
@GetMapping(value = "/listSampleName")
|
||||||
|
public Result<List<ExperimentSampleInfo>> listSampleName(HttpServletRequest req) {
|
||||||
|
List<ExperimentSampleInfo> pageList = experimentSampleInfoService.listSampleName();
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
@Operation(summary = "试验样品信息-列表查询")
|
@Operation(summary = "试验样品信息-列表查询")
|
||||||
@GetMapping(value = "/search")
|
@GetMapping(value = "/search")
|
||||||
public Result<List<ExperimentSampleInfo>> search(ExperimentSampleInfo experimentSampleInfo, HttpServletRequest req) {
|
public Result<List<ExperimentSampleInfo>> search(ExperimentSampleInfo experimentSampleInfo, HttpServletRequest req) {
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
package org.jeecg.modules.database.mapper;
|
package org.jeecg.modules.database.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.jeecg.modules.database.entity.ExperimentSampleInfo;
|
import org.jeecg.modules.database.entity.ExperimentSampleInfo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 试验样品信息
|
* @Description: 试验样品信息
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
@@ -11,4 +14,13 @@ import org.jeecg.modules.database.entity.ExperimentSampleInfo;
|
|||||||
*/
|
*/
|
||||||
public interface ExperimentSampleInfoMapper extends BaseMapper<ExperimentSampleInfo> {
|
public interface ExperimentSampleInfoMapper extends BaseMapper<ExperimentSampleInfo> {
|
||||||
|
|
||||||
|
@Select("SELECT distinct sample_model FROM experiment_sample_info")
|
||||||
|
List<ExperimentSampleInfo> listSampleModel();
|
||||||
|
|
||||||
|
@Select("SELECT distinct sample_batch FROM experiment_sample_info")
|
||||||
|
List<ExperimentSampleInfo> listSampleBatch();
|
||||||
|
|
||||||
|
@Select("SELECT distinct sample_name,sample_type FROM experiment_sample_info")
|
||||||
|
List<ExperimentSampleInfo> listSampleName();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,10 @@ import java.util.List;
|
|||||||
public interface IExperimentSampleInfoService extends IService<ExperimentSampleInfo> {
|
public interface IExperimentSampleInfoService extends IService<ExperimentSampleInfo> {
|
||||||
|
|
||||||
List<ExperimentSampleInfo> getByExperimentId(String experimentId);
|
List<ExperimentSampleInfo> getByExperimentId(String experimentId);
|
||||||
|
|
||||||
|
List<ExperimentSampleInfo> listSampleModel();
|
||||||
|
|
||||||
|
List<ExperimentSampleInfo> listSampleBatch();
|
||||||
|
|
||||||
|
List<ExperimentSampleInfo> listSampleName();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,4 +23,19 @@ public class ExperimentSampleInfoServiceImpl extends ServiceImpl<ExperimentSampl
|
|||||||
public List<ExperimentSampleInfo> getByExperimentId(String experimentId) {
|
public List<ExperimentSampleInfo> getByExperimentId(String experimentId) {
|
||||||
return list(new LambdaQueryWrapper<ExperimentSampleInfo>().eq(ExperimentSampleInfo::getExperimentId, experimentId));
|
return list(new LambdaQueryWrapper<ExperimentSampleInfo>().eq(ExperimentSampleInfo::getExperimentId, experimentId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ExperimentSampleInfo> listSampleModel() {
|
||||||
|
return baseMapper.listSampleModel();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ExperimentSampleInfo> listSampleBatch() {
|
||||||
|
return baseMapper.listSampleBatch();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<ExperimentSampleInfo> listSampleName() {
|
||||||
|
return baseMapper.listSampleName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ flask = "^3.1.0"
|
|||||||
minio = "^7.2.12"
|
minio = "^7.2.12"
|
||||||
mysql-connector-python = "^9.1.0"
|
mysql-connector-python = "^9.1.0"
|
||||||
urllib3 = "^2.2.3"
|
urllib3 = "^2.2.3"
|
||||||
|
pandas = "^2.2.3"
|
||||||
|
openpyxl = "^3.1.5"
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|||||||
Reference in New Issue
Block a user