Commit 59e2ed34 authored by zhangjianqian's avatar zhangjianqian

app nfc查询接口

parent 0789fae8
...@@ -67,6 +67,14 @@ public class TNfcSettingController extends BaseController ...@@ -67,6 +67,14 @@ public class TNfcSettingController extends BaseController
return AjaxResult.success(tNfcSettingService.selectTNfcSettingById(nfcId)); return AjaxResult.success(tNfcSettingService.selectTNfcSettingById(nfcId));
} }
/**
* 根据nfcNum获取巡检详细信息
*/
@GetMapping(value = "/selectByNfcNum")
public AjaxResult getInfoByNfcNum(String nfcNum)
{
return AjaxResult.success(tNfcSettingService.getInfoByNfcNum(nfcNum));
}
/** /**
* 新增巡检 * 新增巡检
*/ */
......
...@@ -19,6 +19,12 @@ public interface TNfcSettingMapper ...@@ -19,6 +19,12 @@ public interface TNfcSettingMapper
*/ */
public TNfcSetting selectTNfcSettingById(Long nfcId); public TNfcSetting selectTNfcSettingById(Long nfcId);
/**
* 根据nfcNum查询详情
* @param nfcNum
*/
public TNfcSetting getInfoByNfcNum(String nfcNum);
/** /**
* 查询setting列表 * 查询setting列表
* *
......
...@@ -19,6 +19,12 @@ public interface ITNfcSettingService ...@@ -19,6 +19,12 @@ public interface ITNfcSettingService
*/ */
public TNfcSetting selectTNfcSettingById(Long nfcId); public TNfcSetting selectTNfcSettingById(Long nfcId);
/**
* 根据nfc获取详情
* @param nfcNum
* @return
*/
public TNfcSetting getInfoByNfcNum(String nfcNum);
/** /**
* 查询setting列表 * 查询setting列表
* *
......
...@@ -32,6 +32,17 @@ public class TNfcSettingServiceImpl implements ITNfcSettingService ...@@ -32,6 +32,17 @@ public class TNfcSettingServiceImpl implements ITNfcSettingService
return tNfcSettingMapper.selectTNfcSettingById(nfcId); return tNfcSettingMapper.selectTNfcSettingById(nfcId);
} }
/**
* 根据nfc查询
* @param nfcNum
* @return
*/
@Override
public TNfcSetting getInfoByNfcNum(String nfcNum)
{
return tNfcSettingMapper.getInfoByNfcNum(nfcNum);
}
/** /**
* 查询setting列表 * 查询setting列表
* *
......
...@@ -33,6 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -33,6 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectTNfcSettingVo"/> <include refid="selectTNfcSettingVo"/>
where nfc_id = #{nfcId} where nfc_id = #{nfcId}
</select> </select>
<select id="getInfoByNfcNum" parameterType="java.lang.String" resultMap="TNfcSettingResult">
<include refid="selectTNfcSettingVo"/>
where nfc_num = #{nfcNum}
</select>
<insert id="insertTNfcSetting" parameterType="TNfcSetting" useGeneratedKeys="true" keyProperty="nfcId"> <insert id="insertTNfcSetting" parameterType="TNfcSetting" useGeneratedKeys="true" keyProperty="nfcId">
insert into t_nfc_setting insert into t_nfc_setting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment