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 @@
</select>
<insert id="addTDLDevice" parameterType="com.example.tdl.domain.vo.AddTDLDeviceVo">
INSERT INTO TDLDevice VALUES (
NULL ,
INSERT INTO TDLDevice(TDLName,TDLSN,counts,lastTime,company_id) VALUES (
#{TDLName,jdbcType=VARCHAR},
#{TDLSN,jdbcType=VARCHAR},
0,
0,
0,
NULL ,
NULL,
NULL,
(SELECT id from company where companyNo=#{companyNo,jdbcType=VARCHAR})
)
</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