Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
from goods_brand_info a
|
||||
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||
<where>
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1'
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1' and a.isEnable='1'
|
||||
</where>
|
||||
</select>
|
||||
<update id="updateBySidIsDelete">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
from goods_manufacturer a
|
||||
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||
<where>
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1'
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1' and a.isEnable='1'
|
||||
</where>
|
||||
</select>
|
||||
<select id="getAllTypeByUseOrgSid" resultType="com.yxt.goods.biz.goodsmanufacturer.GoodsManufacturerVo">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
from goods_spu a
|
||||
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||
<where>
|
||||
s.orgSidPath like #{orgPath} and a.isDelete !='1'
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1' and a.isEnable='1'
|
||||
</where>
|
||||
</select>
|
||||
<select id="initialization" resultType="com.yxt.goods.biz.goodsspu.GoodsSpuVo">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
from goods_type a
|
||||
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||
<where>
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1'
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1' and a.isEnable='1'
|
||||
</where>
|
||||
</select>
|
||||
<update id="updateBySidIsDelete">
|
||||
|
||||
@@ -83,6 +83,15 @@ public class GoodsTypeService extends MybatisBaseService<GoodsTypeMapper, GoodsT
|
||||
}
|
||||
record.setSids(record.getPSid());
|
||||
}
|
||||
if(record.getOutStockRule().equals("0")){
|
||||
record.setOutStockRuleVaule("先进先出");
|
||||
}
|
||||
else if(record.getOutStockRule().equals("1")){
|
||||
record.setOutStockRuleVaule("先进后出");
|
||||
}
|
||||
else if(record.getOutStockRule().equals("2")){
|
||||
record.setOutStockRuleVaule("保质期优先");
|
||||
}
|
||||
}
|
||||
return rb.success().setData(p);
|
||||
}
|
||||
@@ -152,7 +161,17 @@ public class GoodsTypeService extends MybatisBaseService<GoodsTypeMapper, GoodsT
|
||||
GoodsType wmsGoodsType1 = fetchBySid(wmsGoodsType.getPSid());
|
||||
vo.setPName(wmsGoodsType1.getGoodsTypeName());
|
||||
}
|
||||
//先进先出0、先进后出1、保质期优先2
|
||||
vo.setSids(wmsGoodsType.getPSid());
|
||||
if(vo.getOutStockRule().equals("0")){
|
||||
vo.setOutStockRuleVaule("先进先出");
|
||||
}
|
||||
else if(vo.getOutStockRule().equals("1")){
|
||||
vo.setOutStockRuleVaule("先进后出");
|
||||
}
|
||||
else if(vo.getOutStockRule().equals("2")){
|
||||
vo.setOutStockRuleVaule("保质期优先");
|
||||
}
|
||||
}
|
||||
return rb.success().setData(vo);
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ public class GoodsTypeVo implements Vo {
|
||||
private String createOrgSid;//创建组织sid
|
||||
private String sids;//创建组织sid
|
||||
private String outStockRule;//出库规则
|
||||
private String outStockRuleVaule;//出库规则
|
||||
private String userSid;
|
||||
private String orgPath;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
from goods_unit a
|
||||
LEFT JOIN ss_user.sys_organization as s ON a.useOrgSid = s.sid
|
||||
<where>
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1'
|
||||
s.orgSidPath like concat('%',#{orgPath},'%') and a.isDelete !='1' and a.isEnable='1'
|
||||
</where>
|
||||
</select>
|
||||
<update id="updateBySidIsDelete">
|
||||
|
||||
Reference in New Issue
Block a user