From f59681e9cf7faedb6c28e23920c58ecb919be547 Mon Sep 17 00:00:00 2001 From: ZY <zc857179121@qq.com> Date: 星期一, 28 十月 2024 10:14:29 +0800 Subject: [PATCH] sql注入漏洞 --- src/main/java/com/zy/common/model/LocDto.java | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/common/model/LocDto.java b/src/main/java/com/zy/common/model/LocDto.java index 435baa0..8406e5d 100644 --- a/src/main/java/com/zy/common/model/LocDto.java +++ b/src/main/java/com/zy/common/model/LocDto.java @@ -12,6 +12,8 @@ @Data public class LocDto { + private Long hostId; + private String locNo; private String matnr; @@ -39,32 +41,38 @@ public LocDto() { } - public LocDto(String locNo, String matnr, String batch, Double anfme) { + public LocDto(Long hostId,String locNo, String matnr, String batch, Double anfme,String manu) { this.locNo = locNo; this.matnr = matnr; this.batch = batch; this.anfme = anfme; + this.hostId = hostId; + this.manu = manu; } - public LocDto(String locNo, String matnr, String batch, String orderNo, Double anfme) { + public LocDto(Long hostId,String locNo, String matnr, String batch, String orderNo, Double anfme,String manu) { this.locNo = locNo; this.matnr = matnr; this.batch = batch; this.orderNo = orderNo; this.anfme = anfme; + this.hostId = hostId; + this.manu = manu; } - public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme) { + public LocDto(Long hostId,String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme,String manu) { this.locNo = locNo; this.matnr = matnr; this.maktx = maktx; this.batch = batch; this.orderNo = orderNo; this.anfme = anfme; + this.hostId = hostId; + this.manu = manu; } - public LocDto(String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme, Double needQty) { + public LocDto(Long hostId,String locNo, String matnr, String maktx, String batch, String orderNo, Double anfme, Double needQty,String manu) { this.locNo = locNo; this.matnr = matnr; this.maktx = maktx; @@ -72,6 +80,8 @@ this.orderNo = orderNo; this.anfme = anfme; this.needQty = needQty; + this.hostId = hostId; + this.manu = manu; } public String getTitle() { -- Gitblit v1.9.1