微调
This commit is contained in:
@@ -21,7 +21,7 @@ public class AdBaseResult {
|
||||
/**
|
||||
* 总检测脚本中的测试项序号
|
||||
*/
|
||||
private Integer index;
|
||||
private Integer sort;
|
||||
|
||||
/**
|
||||
* 0.不合格 1.合格
|
||||
|
||||
@@ -16,11 +16,11 @@ public interface AdHarmonicService extends IService<AdHarmonicResult> {
|
||||
* 根据设备ID和通道号获取谐波结果
|
||||
*
|
||||
* @param scriptId 脚本id
|
||||
* @param index 序号列表
|
||||
* @param sort 序号列表
|
||||
* @param deviceId 设备ID
|
||||
* @param chnNum 通道号,从1开始
|
||||
* @param code 计划code
|
||||
* @return 谐波结果
|
||||
*/
|
||||
List<AdBaseResult> get(String scriptId, List<Integer> index, String deviceId, String chnNum,Integer code);
|
||||
List<AdBaseResult> get(String scriptId, List<Integer> sort, String deviceId, String chnNum,Integer code);
|
||||
}
|
||||
|
||||
@@ -13,12 +13,12 @@ public interface AdNonHarmonicService extends IService<AdNonHarmonicResult> {
|
||||
* 根据设备ID和通道号获取非谐波结果
|
||||
*
|
||||
* @param scriptId 脚本ID
|
||||
* @param index 总检测脚本中的测试项序号列表
|
||||
* @param sort 总检测脚本中的测试项序号列表
|
||||
* @param deviceId 设备ID
|
||||
* @param chnNum 通道号,从1开始
|
||||
* @return 非谐波结果
|
||||
*/
|
||||
List<AdBaseResult> get(String scriptId, List<Integer> index, String deviceId, String chnNum,Integer code);
|
||||
List<AdBaseResult> get(String scriptId, List<Integer> sort, String deviceId, String chnNum,Integer code);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
@Service
|
||||
public class AdHarmonicServiceImpl extends ServiceImpl<AdHarmonicMappper, AdHarmonicResult> implements AdHarmonicService {
|
||||
@Override
|
||||
public List<AdBaseResult> get(String scriptId, List<Integer> index, String deviceId, String chnNum,Integer code ) {
|
||||
public List<AdBaseResult> get(String scriptId, List<Integer> sort, String deviceId, String chnNum,Integer code ) {
|
||||
String prefix = "ad_harmonic_result_";
|
||||
DynamicTableNameHandler.setTableName(prefix +code);
|
||||
MPJLambdaWrapper<AdHarmonicResult> wrapper = new MPJLambdaWrapper<>();
|
||||
@@ -31,7 +31,7 @@ public class AdHarmonicServiceImpl extends ServiceImpl<AdHarmonicMappper, AdHarm
|
||||
}
|
||||
wrapper.like(AdHarmonicResult::getMonitorId, monitorId)
|
||||
.eq(ObjectUtil.isNotNull(scriptId), AdHarmonicResult::getScriptId, scriptId)
|
||||
.in(CollUtil.isNotEmpty(index), AdHarmonicResult::getSort, index);
|
||||
.in(CollUtil.isNotEmpty(sort), AdHarmonicResult::getSort, sort);
|
||||
List<AdHarmonicResult> list = this.getBaseMapper().selectJoinList(AdHarmonicResult.class, wrapper);
|
||||
DynamicTableNameHandler.remove();
|
||||
return BeanUtil.copyToList(list, AdBaseResult.class);
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
public class AdNonHarmonicServiceImpl extends ServiceImpl<AdNonHarmonicMapper, AdNonHarmonicResult> implements AdNonHarmonicService {
|
||||
|
||||
@Override
|
||||
public List<AdBaseResult> get(String scriptId, List<Integer> index, String deviceId, String chnNum, Integer code) {
|
||||
public List<AdBaseResult> get(String scriptId, List<Integer> sort, String deviceId, String chnNum, Integer code) {
|
||||
String prefix = "ad_non_harmonic_result_";
|
||||
DynamicTableNameHandler.setTableName(prefix + code);
|
||||
|
||||
@@ -32,7 +32,7 @@ public class AdNonHarmonicServiceImpl extends ServiceImpl<AdNonHarmonicMapper, A
|
||||
}
|
||||
wrapper.like(AdNonHarmonicResult::getMonitorId, monitorId)
|
||||
.eq(ObjectUtil.isNotNull(scriptId), AdNonHarmonicResult::getScriptId, scriptId)
|
||||
.in(CollUtil.isNotEmpty(index), AdNonHarmonicResult::getSort, index);
|
||||
.in(CollUtil.isNotEmpty(sort), AdNonHarmonicResult::getSort, sort);
|
||||
List<AdNonHarmonicResult> list = this.getBaseMapper().selectJoinList(AdNonHarmonicResult.class, wrapper);
|
||||
DynamicTableNameHandler.remove();
|
||||
return BeanUtil.copyToList(list, AdBaseResult.class);
|
||||
|
||||
Reference in New Issue
Block a user