Commit 084cb8a6 by 胡懿

修改入库表单代码逻辑

parent eb01a724
...@@ -95,10 +95,10 @@ public class GoodsController extends BaseController { ...@@ -95,10 +95,10 @@ public class GoodsController extends BaseController {
@RequiresPermissions(value={"warehouse:goods:goods:view","warehouse:goods:goods:add","warehouse:goods:goods:edit"},logical=Logical.OR) @RequiresPermissions(value={"warehouse:goods:goods:view","warehouse:goods:goods:add","warehouse:goods:goods:edit"},logical=Logical.OR)
@RequestMapping(value = "form/{mode}") @RequestMapping(value = "form/{mode}")
public String form(@PathVariable String mode, Goods goods, Model model) { public String form(@PathVariable String mode, Goods goods, Model model) {
if (mode.equals("add")) { /*if (mode.equals("add")) {
String batchNum = CodeUtil.code("PC", StaticNumSeq.PC); String batchNum = CodeUtil.code("PC", StaticNumSeq.PC);
goods.setBatchNum(batchNum); goods.setBatchNum(batchNum);
} }*/
goods.setTime(new Date()); goods.setTime(new Date());
goods.setOperator(UserUtils.getUser()); goods.setOperator(UserUtils.getUser());
......
...@@ -21,6 +21,7 @@ import java.io.*; ...@@ -21,6 +21,7 @@ import java.io.*;
import java.text.AttributedString; import java.text.AttributedString;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Iterator; import java.util.Iterator;
import java.util.Locale;
public class DrawQrcodeUtil { public class DrawQrcodeUtil {
/** /**
...@@ -253,7 +254,8 @@ public class DrawQrcodeUtil { ...@@ -253,7 +254,8 @@ public class DrawQrcodeUtil {
, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY); , RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
g2.setRenderingHints(rh); g2.setRenderingHints(rh);
Font font = new Font("黑体",Font.BOLD,14 * qRcodeSize.getInitfontSize()); Font font = new Font("微软雅黑",Font.PLAIN,150);
g2.setFont(font); //设置字体:字体、字号、大小 g2.setFont(font); //设置字体:字体、字号、大小
g2.setColor(qRcodeSize.color);//设置背景颜色 g2.setColor(qRcodeSize.color);//设置背景颜色
// g2.setBackground(c); // g2.setBackground(c);
......
...@@ -69,7 +69,7 @@ public class ShelvesUtil { ...@@ -69,7 +69,7 @@ public class ShelvesUtil {
tem.setDelFlag("0"); tem.setDelFlag("0");
List<Shelves> list = shelvesMapper.findList(tem); List<Shelves> list = shelvesMapper.findList(tem);
for (Shelves s : list) { for (Shelves s : list) {
CacheUtils.put(SHELCES_CACHE, SHELCES_ID + s.getId()); CacheUtils.put(SHELCES_CACHE, SHELCES_ID + s.getId(), s);
} }
shelves = (Shelves) CacheUtils.get(SHELCES_CACHE, SHELCES_ID + id); shelves = (Shelves) CacheUtils.get(SHELCES_CACHE, SHELCES_ID + id);
resultList.add(shelves); resultList.add(shelves);
...@@ -99,7 +99,7 @@ public class ShelvesUtil { ...@@ -99,7 +99,7 @@ public class ShelvesUtil {
tem.setDelFlag("0"); tem.setDelFlag("0");
List<Warehouse> list = warehouseMapper.findList(tem); List<Warehouse> list = warehouseMapper.findList(tem);
for (Warehouse w : list) { for (Warehouse w : list) {
CacheUtils.put(WAREHOUSE_CACHE, WAREHOUSE_ID + w.getId()); CacheUtils.put(WAREHOUSE_CACHE, WAREHOUSE_ID + w.getId(), w);
} }
warehouse = (Warehouse) CacheUtils.get(WAREHOUSE_CACHE, WAREHOUSE_ID + id); warehouse = (Warehouse) CacheUtils.get(WAREHOUSE_CACHE, WAREHOUSE_ID + id);
resultList.add(warehouse); resultList.add(warehouse);
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
type.name AS "type.name", type.name AS "type.name",
type.code AS "type.code", type.code AS "type.code",
type.amount AS "type.amount",
type.unit AS "type.unit",
qr.code AS "qrCode.code", qr.code AS "qrCode.code",
qr.state AS "qrCode.state" qr.state AS "qrCode.state"
...@@ -122,6 +124,7 @@ ...@@ -122,6 +124,7 @@
warehouse_id, warehouse_id,
qr_id, qr_id,
amount, amount,
num,
remarks, remarks,
create_by, create_by,
create_date, create_date,
...@@ -139,6 +142,7 @@ ...@@ -139,6 +142,7 @@
#{warehouseIds}, #{warehouseIds},
#{qrCode.id}, #{qrCode.id},
#{amount}, #{amount},
#{num},
#{remarks}, #{remarks},
#{createBy.id}, #{createBy.id},
#{createDate}, #{createDate},
...@@ -158,6 +162,7 @@ ...@@ -158,6 +162,7 @@
shelves_id = #{shelvesIds}, shelves_id = #{shelvesIds},
warehouse_id = #{warehouseIds}, warehouse_id = #{warehouseIds},
amount = #{amount}, amount = #{amount},
num = #{num},
remarks = #{remarks}, remarks = #{remarks},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate} update_date = #{updateDate}
......
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