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