Commit 8585e0c0 by 胡懿

台账表修改货架、仓库字段

parent b91f6d1a
...@@ -10,8 +10,10 @@ import com.jeeplus.modules.warehouse.shelves.entity.Shelves; ...@@ -10,8 +10,10 @@ import com.jeeplus.modules.warehouse.shelves.entity.Shelves;
import com.jeeplus.core.persistence.DataEntity; import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField; import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.warehouse.warehouse.entity.Warehouse;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.List;
/** /**
* 台账明细Entity * 台账明细Entity
...@@ -28,10 +30,17 @@ public class LedgerInfo extends DataEntity<LedgerInfo> { ...@@ -28,10 +30,17 @@ public class LedgerInfo extends DataEntity<LedgerInfo> {
private Ledger ledger; // 主表外键 父类 private Ledger ledger; // 主表外键 父类
private GoodsInfo goodsInfo; // 货品明细 private GoodsInfo goodsInfo; // 货品明细
private QrCode qr; // 二维码id private QrCode qr; // 二维码id
private Shelves shelves; // 货架id
private String code; // 物资编码 private String code; // 物资编码
private BigDecimal amount; // 单价 private BigDecimal amount; // 单价
private int num; // 数量
private String shelvesIds;
private String warehouseIds;
private List<Shelves> shelvesList;
private List<Warehouse> warehouseList;
public LedgerInfo() { public LedgerInfo() {
super(); super();
} }
...@@ -104,15 +113,7 @@ public class LedgerInfo extends DataEntity<LedgerInfo> { ...@@ -104,15 +113,7 @@ public class LedgerInfo extends DataEntity<LedgerInfo> {
public void setQr(QrCode qr) { public void setQr(QrCode qr) {
this.qr = qr; this.qr = qr;
} }
@ExcelField(title="货架id", fieldType=Shelves.class, value="shelves.name", align=2, sort=8)
public Shelves getShelves() {
return shelves;
}
public void setShelves(Shelves shelves) {
this.shelves = shelves;
}
@ExcelField(title="物资编码", align=2, sort=9) @ExcelField(title="物资编码", align=2, sort=9)
public String getCode() { public String getCode() {
...@@ -131,4 +132,44 @@ public class LedgerInfo extends DataEntity<LedgerInfo> { ...@@ -131,4 +132,44 @@ public class LedgerInfo extends DataEntity<LedgerInfo> {
public void setAmount(BigDecimal amount) { public void setAmount(BigDecimal amount) {
this.amount = amount; this.amount = amount;
} }
public int getNum() {
return num;
}
public void setNum(int num) {
this.num = num;
}
public String getShelvesIds() {
return shelvesIds;
}
public void setShelvesIds(String shelvesIds) {
this.shelvesIds = shelvesIds;
}
public String getWarehouseIds() {
return warehouseIds;
}
public void setWarehouseIds(String warehouseIds) {
this.warehouseIds = warehouseIds;
}
public List<Shelves> getShelvesList() {
return shelvesList;
}
public void setShelvesList(List<Shelves> shelvesList) {
this.shelvesList = shelvesList;
}
public List<Warehouse> getWarehouseList() {
return warehouseList;
}
public void setWarehouseList(List<Warehouse> warehouseList) {
this.warehouseList = warehouseList;
}
} }
\ No newline at end of file
...@@ -11,9 +11,11 @@ ...@@ -11,9 +11,11 @@
a.ledger_id AS "ledger.id", a.ledger_id AS "ledger.id",
a.goods_info_id AS "goodsInfo.id", a.goods_info_id AS "goodsInfo.id",
a.qr_id AS "qr.id", a.qr_id AS "qr.id",
a.shelves_id AS "shelves.id", a.shelves_ids AS "shelvesIds",
a.warehouse_ids AS "warehouseIds",
a.code AS "code", a.code AS "code",
a.amount AS "amount", a.amount AS "amount",
a.num AS "num",
a.create_by AS "createBy.id", a.create_by AS "createBy.id",
a.create_date AS "createDate", a.create_date AS "createDate",
a.update_by AS "updateBy.id", a.update_by AS "updateBy.id",
...@@ -24,13 +26,11 @@ ...@@ -24,13 +26,11 @@
type.code AS "type.code", type.code AS "type.code",
type.name AS "type.name", type.name AS "type.name",
type.amount AS "type.amount",
type.unit AS "type.unit",
shelves.name AS "shelves.name",
qr.url AS "qr.url" qr.url AS "qr.url"
</sql> </sql>
...@@ -38,8 +38,7 @@ ...@@ -38,8 +38,7 @@
<sql id="ledgerInfoJoins"> <sql id="ledgerInfoJoins">
LEFT JOIN t_wh_material_type type ON type.id = a.type_id LEFT JOIN t_wh_material_type type ON type.id = a.type_id
LEFT JOIN t_wh_ledger b ON b.id = a.ledger_id LEFT JOIN t_wh_ledger b ON b.id = a.ledger_id
LEFT JOIN t_wh_shelves shelves ON shelves.id = a.shelves_id
LEFT JOIN t_wh_qr qr ON a.qr_id = qr.id LEFT JOIN t_wh_qr qr ON a.qr_id = qr.id
</sql> </sql>
...@@ -84,8 +83,11 @@ ...@@ -84,8 +83,11 @@
<if test="ledger != null and ledger.id != null and ledger.id != ''"> <if test="ledger != null and ledger.id != null and ledger.id != ''">
AND a.ledger_id = #{ledger.id} AND a.ledger_id = #{ledger.id}
</if> </if>
<if test="shelves != null and shelves.id != null and shelves.id != ''"> <if test="shelvesIds != null and shelvesIds != ''">
AND a.shelves_id = #{shelves.id} AND a.shelves_ids LIKE
<if test="dbName == 'oracle'">'%'||#{shelvesIds}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{shelvesIds}+'%'</if>
<if test="dbName == 'mysql'">concat('%',#{shelvesIds},'%')</if>
</if> </if>
<if test="code != null and code != ''"> <if test="code != null and code != ''">
AND a.code LIKE AND a.code LIKE
...@@ -136,9 +138,11 @@ ...@@ -136,9 +138,11 @@
ledger_id, ledger_id,
goods_info_id, goods_info_id,
qr_id, qr_id,
shelves_id, shelves_ids,
warehouse_ids,
code, code,
amount, amount,
num,
create_by, create_by,
create_date, create_date,
update_by, update_by,
...@@ -154,9 +158,11 @@ ...@@ -154,9 +158,11 @@
#{ledger.id}, #{ledger.id},
#{goodsInfo.id}, #{goodsInfo.id},
#{qr.id}, #{qr.id},
#{shelves.id}, #{shelvesIds},
#{warehouseIds},
#{code}, #{code},
#{amount}, #{amount},
#{num},
#{createBy.id}, #{createBy.id},
#{createDate}, #{createDate},
#{updateBy.id}, #{updateBy.id},
...@@ -175,7 +181,8 @@ ...@@ -175,7 +181,8 @@
ledger_id = #{ledger.id}, ledger_id = #{ledger.id},
goods_info_id = #{goodsInfo.id}, goods_info_id = #{goodsInfo.id},
qr_id = #{qr.id}, qr_id = #{qr.id},
shelves_id = #{shelves.id}, shelves_ids = #{shelvesIds},
warehouse_ids = #{warehouseIds},
code = #{code}, code = #{code},
amount = #{amount}, amount = #{amount},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
......
...@@ -237,6 +237,7 @@ public class DrawQrcodeUtil { ...@@ -237,6 +237,7 @@ public class DrawQrcodeUtil {
} }
} }
// D:/jeeplus/userfiles/1/程序附件/image/500107-2023-07-0011.png
public static BufferedImage createAssetImageNew(File qrcodeFile,QrCode qrCode) throws IOException { public static BufferedImage createAssetImageNew(File qrcodeFile,QrCode qrCode) throws IOException {
GoodsInfo goodsInfo = qrCode.getGoodsInfo(); GoodsInfo goodsInfo = qrCode.getGoodsInfo();
QRcodeSize qRcodeSize = null; QRcodeSize qRcodeSize = null;
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
a.type_id AS "type.id", a.type_id AS "type.id",
a.model AS "model", a.model AS "model",
a.goods_info_id AS "goodsInfo.id", a.goods_info_id AS "goodsInfo.id",
a.shelves_id AS "shelvesIds", a.shelves_ids AS "shelvesIds",
a.warehouse_id AS "warehouseIds", a.warehouse_ids AS "warehouseIds",
a.qr_id AS "qrCode.id", a.qr_id AS "qrCode.id",
a.remarks AS "remarks", a.remarks AS "remarks",
a.create_by AS "createBy.id", a.create_by AS "createBy.id",
...@@ -120,8 +120,8 @@ ...@@ -120,8 +120,8 @@
type_id, type_id,
model, model,
goods_info_id, goods_info_id,
shelves_id, shelves_ids,
warehouse_id, warehouse_ids,
qr_id, qr_id,
amount, amount,
num, num,
...@@ -159,8 +159,8 @@ ...@@ -159,8 +159,8 @@
type_id = #{type.id}, type_id = #{type.id},
model = #{model}, model = #{model},
goods_info_id = #{goodsInfo.id}, goods_info_id = #{goodsInfo.id},
shelves_id = #{shelvesIds}, shelves_ids = #{shelvesIds},
warehouse_id = #{warehouseIds}, warehouse_ids = #{warehouseIds},
amount = #{amount}, amount = #{amount},
num = #{num}, num = #{num},
remarks = #{remarks}, remarks = #{remarks},
......
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