|
|
@ -2001,7 +2001,11 @@ |
|
|
rfl.Reportfile labelName, |
|
|
rfl.Reportfile labelName, |
|
|
rfl.ReportType labelClass, |
|
|
rfl.ReportType labelClass, |
|
|
rfp.NewPrinterName printerName, |
|
|
rfp.NewPrinterName printerName, |
|
|
rfp.IPAddress ipAddress |
|
|
|
|
|
|
|
|
rfp.IPAddress ipAddress, |
|
|
|
|
|
rfp.create_by createBy, |
|
|
|
|
|
rfp.create_date createDate, |
|
|
|
|
|
rfp.update_by updateBy, |
|
|
|
|
|
rfp.update_date updateDate |
|
|
FROM ReportFileList_UserPrinter rfp |
|
|
FROM ReportFileList_UserPrinter rfp |
|
|
LEFT JOIN sys_user ssu ON ssu.username = rfp.UserID |
|
|
LEFT JOIN sys_user ssu ON ssu.username = rfp.UserID |
|
|
LEFT JOIN ReportFileList rfl ON rfl.ReportID = rfp.ReportID |
|
|
LEFT JOIN ReportFileList rfl ON rfl.ReportID = rfp.ReportID |
|
|
@ -2037,14 +2041,15 @@ |
|
|
|
|
|
|
|
|
<!--插入用户的标签打印机参数--> |
|
|
<!--插入用户的标签打印机参数--> |
|
|
<insert id="insertUserLabelPrinter" parameterType="UserLabelPrinterData"> |
|
|
<insert id="insertUserLabelPrinter" parameterType="UserLabelPrinterData"> |
|
|
INSERT INTO ReportFileList_UserPrinter(ReportID, UserID, PrinterName, IPAddress, NewPrinterName) |
|
|
|
|
|
VALUES (#{labelNo}, #{userId}, '', #{ipAddress}, #{printerName}) |
|
|
|
|
|
|
|
|
INSERT INTO ReportFileList_UserPrinter(ReportID, UserID, PrinterName, IPAddress, NewPrinterName, create_by, create_date, update_by, update_date) |
|
|
|
|
|
VALUES (#{labelNo}, #{userId}, '', #{ipAddress}, #{printerName}, #{createBy}, GETDATE(), #{createBy}, GETDATE()) |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--修改用户的标签打印机参数--> |
|
|
<!--修改用户的标签打印机参数--> |
|
|
<update id="updateUserLabelPrinter" parameterType="UserLabelPrinterData"> |
|
|
<update id="updateUserLabelPrinter" parameterType="UserLabelPrinterData"> |
|
|
UPDATE ReportFileList_UserPrinter SET IPAddress = #{ipAddress}, NewPrinterName = #{printerName} |
|
|
|
|
|
|
|
|
UPDATE ReportFileList_UserPrinter SET IPAddress = #{ipAddress}, NewPrinterName = #{printerName}, |
|
|
|
|
|
update_by = #{updateBy}, update_date = GETDATE() |
|
|
<where> |
|
|
<where> |
|
|
AND ReportID = #{labelNo} AND UserID = #{userId} |
|
|
AND ReportID = #{labelNo} AND UserID = #{userId} |
|
|
</where> |
|
|
</where> |
|
|
|