Commit 4de4ef08 authored by Carit Zhu's avatar Carit Zhu 🎱

Update SQL of addTDLDevice function to appoint column name for inserting TDLDevice data.

parent aaa7934c
Pipeline #449 passed with stage
in 0 seconds
...@@ -33,16 +33,11 @@ ...@@ -33,16 +33,11 @@
</select> </select>
<insert id="addTDLDevice" parameterType="com.example.tdl.domain.vo.AddTDLDeviceVo"> <insert id="addTDLDevice" parameterType="com.example.tdl.domain.vo.AddTDLDeviceVo">
INSERT INTO TDLDevice VALUES ( INSERT INTO TDLDevice(TDLName,TDLSN,counts,lastTime,company_id) VALUES (
NULL ,
#{TDLName,jdbcType=VARCHAR}, #{TDLName,jdbcType=VARCHAR},
#{TDLSN,jdbcType=VARCHAR}, #{TDLSN,jdbcType=VARCHAR},
0, 0,
0, 0,
0,
NULL ,
NULL,
NULL,
(SELECT id from company where companyNo=#{companyNo,jdbcType=VARCHAR}) (SELECT id from company where companyNo=#{companyNo,jdbcType=VARCHAR})
) )
</insert> </insert>
......
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