Commit 3ed7fbf9 LN

已存在的条码不更改尺寸

1 个父辈 11e7d0a6
......@@ -242,6 +242,9 @@ public class Barcode extends BasePo implements Serializable {
* @param appendValue
*/
public void updateAppendData(String appendKey, Object appendValue){
if(appendData==null){
appendData=new HashMap<>();
}
appendData.put(appendKey, appendValue);
}
......@@ -252,6 +255,9 @@ public class Barcode extends BasePo implements Serializable {
* @return
*/
public <T> T getAppendData(String appendKey){
if(appendData==null){
return null;
}
Object value = appendData.get(appendKey);
if(value != null){
return (T)value;
......
......@@ -216,6 +216,9 @@ public class Component extends BasePo implements Serializable {
* @param appendValue
*/
public void updateAppendData(String appendKey, String appendValue){
if(appendData==null){
appendData=new HashMap<>();
}
appendData.put(appendKey, appendValue);
}
......@@ -226,6 +229,9 @@ public class Component extends BasePo implements Serializable {
* @return
*/
public <T> T getAppendData(String appendKey){
if(appendData==null){
return null;
}
Object value = appendData.get(appendKey);
if(value != null){
return (T)value;
......
......@@ -128,6 +128,10 @@ public class CodeResolve {
validDay = component.getValidDay();
codeBeanFromRule.setShowImg(component.getShowImg());
if(!codeBeanFromRule.hasReelSizeInfo()) {
codeBeanFromRule.setReelHeight(barcode.getHeight());
codeBeanFromRule.setReelWidth(barcode.getPlateSize());
}
//如果已经确认尺寸,使用确认的尺寸
if (component.isSizeConfirmed() || ((component.hasSizeInfo()) && (!codeBeanFromRule.hasReelSizeInfo()))) {
codeBeanFromRule.setReelWidth(component.getPlateSize());
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!