修改 发泡

master
wangh 3 years ago
parent c7d040b836
commit 4e6349f69e

@ -88,12 +88,12 @@ public class BaseFpPlanqtyController extends BaseController
{
List<BaseFpPlanqty> list = baseFpPlanqtyService.selectBaseFpPlanqtyList(null);
Long id=1L;
int id=0;
System.out.println(list);
if (list!=null||!list.isEmpty()){
id=list.get(list.size()-1).getId()+1;
id= Math.toIntExact(list.get(list.size() - 1).getId()) + 1;
}
baseFpPlanqty.setId(id);
baseFpPlanqty.setId(Long.valueOf(id));
return toAjax(baseFpPlanqtyService.insertBaseFpPlanqty(baseFpPlanqty));
}

@ -214,23 +214,24 @@
</select>
<select id="selectFpStock" resultType="com.ruoyi.system.domain.BoxOutput">
select substr(MATERIAL_NAME,
case
when instr(MATERIAL_NAME, '-', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '-', 1, 1) + 1
end,
case
when instr(MATERIAL_NAME, ',', 1, 2) = 0 then Length(MATERIAL_NAME) + 1
else instr(MATERIAL_NAME, ',', 1, 2)
end
-
case
when instr(MATERIAL_NAME, '-', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '-', 1, 1) + 1
end) as name,
STORE_QTY as qty
from IMOS_LO_BIN
where MATERIAL_NAME like '发泡箱体%'
and STORE_QTY > 0
case
when instr(MATERIAL_NAME, '-', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '-', 1, 1) + 1
end,
case
when instr(MATERIAL_NAME, ',', 1, 2) = 0 then Length(MATERIAL_NAME) + 1
else instr(MATERIAL_NAME, ',', 1, 2)
end
-
case
when instr(MATERIAL_NAME, '-', 1, 1) = 0 then instr(MATERIAL_NAME, ',', 1, 1) + 1
else instr(MATERIAL_NAME, '-', 1, 1) + 1
end) as name,
sum(STORE_QTY) as qty
from IMOS_LO_BIN
where MATERIAL_NAME like '发泡箱体%'
and STORE_QTY > 0
group by MATERIAL_NAME
</select>
<select id="pqk_selectProductInStore" resultType="com.ruoyi.system.domain.BoxOutput">

Loading…
Cancel
Save