1.添加对外接口

This commit is contained in:
2024-11-15 16:12:49 +08:00
parent 9c2b2dbd3e
commit 59a2bb5e62
7 changed files with 35 additions and 0 deletions

View File

@@ -207,5 +207,18 @@ public class WlRecordController extends BaseController {
String methodDescribe = getMethodDescribe("dayDealNoEndTimeEvent");
wlRecordService.dayDealNoEndTimeEvent(date);
}
/**
* 根据测试项获取测试项绑定测点数据
*/
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
@GetMapping("/getWlAssByWlId")
@ApiOperation("根据测试项获取测试项绑定测点数据")
public HttpResult<List<WlRecord>> getWlAssByWlId(@RequestParam("wlId") String wlId) {
String methodDescribe = getMethodDescribe("getWlAssByWlId");
List<WlRecord> result = wlRecordService.getWlAssByWlId(wlId);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
}
}

View File

@@ -48,4 +48,6 @@ public interface WlRecordMapper extends BaseMapper<WlRecord> {
List<CsLedgerVO> getAll();
List<CsLedgerVO> getAllLine(@Param("devId") String devId);
List<WlRecord> getWlAssByWlId(String wlId);
}

View File

@@ -93,4 +93,8 @@
)
order by start_time
</select>
<select id="getWlAssByWlId" resultType="com.njcn.csdevice.pojo.po.WlRecord">
</select>
</mapper>

View File

@@ -108,4 +108,6 @@ public interface IWlRecordService extends IService<WlRecord> {
*/
void dayDealNoEndTimeEvent(String date);
List<WlRecord> getWlAssByWlId(String wlId);
}

View File

@@ -615,6 +615,11 @@ public class WlRecordServiceImpl extends ServiceImpl<WlRecordMapper, WlRecord> i
}
@Override
public List<WlRecord> getWlAssByWlId(String wlId) {
return this.baseMapper.getDataRecordByTestId(wlId,0);
}
/**
* 数据项内的时间进行覆盖:解决多个数据项的startTime及endTime之间存在时间冲突
* @param data 数据项