add:原材料库存修改
This commit is contained in:
@@ -134,8 +134,8 @@ public class QlTestInspectionsheetmstServiceImpl extends ServiceImpl<QlTestInspe
|
||||
ylmst.put("total_qty",mst.getQty());
|
||||
ylmst.put("detail_count",1);
|
||||
ylmst.put("stor_id",IOSEnum.STOR_CODE.code("原材料仓"));
|
||||
ylmst.put("bill_type",IOSEnum.BILL_TYPE.code("手工入库"));
|
||||
ylmst.put("buss_type",IOSEnum.BILL_TYPE.code("手工入库"));
|
||||
ylmst.put("bill_type",IOSEnum.BILL_TYPE.code("采购入库"));
|
||||
ylmst.put("buss_type",IOSEnum.BILL_TYPE.code("采购入库"));
|
||||
ylmst.put("biz_date",DateUtil.today());
|
||||
ylmst.put("tableData",tableData);
|
||||
iostorinvYlService.create(ylmst);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package org.nl.wms.storage_manage.rawmanage.controller.structIvt;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.nl.common.anno.Log;
|
||||
import org.nl.common.domain.query.PageQuery;
|
||||
@@ -10,10 +11,7 @@ import org.nl.wms.storage_manage.rawmanage.service.structIvt.dto.StructIvtYLQuer
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -72,5 +70,11 @@ public class StIvtStructivtYlController {
|
||||
public ResponseEntity<Object> getAllRawIvt(StructIvtYLQuery query, PageQuery page) {
|
||||
return new ResponseEntity<>(structivtYlService.getAllRawIvt(query, page), HttpStatus.OK);
|
||||
}
|
||||
@GetMapping("/update")
|
||||
@Log("更新原料库存")
|
||||
//("查询原料库存")
|
||||
public ResponseEntity<Object> update(@RequestBody JSONObject form) {
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -161,6 +161,7 @@ public class StIvtIostorinvYlServiceImpl extends ServiceImpl<StIvtIostorinvYlMap
|
||||
if (ObjectUtil.isNotEmpty(structivtYl)) {
|
||||
structivtYl.setCanuse_qty(NumberUtil.add(structivtYl.getCanuse_qty(), dis.getPlan_qty()));
|
||||
structivtYl.setIvt_qty(structivtYl.getCanuse_qty());
|
||||
structivtYl.setInstorage_time(DateUtil.now());
|
||||
structivtYlService.updateById(structivtYl);
|
||||
|
||||
// 插入库存变动记录
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
and sa.stor_id = #{query.stor_id}
|
||||
</if>
|
||||
</where>
|
||||
order by instorage_time desc
|
||||
</select>
|
||||
|
||||
<select id="getProductIvt" resultType="java.util.Map">
|
||||
|
||||
@@ -2,7 +2,7 @@ spring:
|
||||
freemarker:
|
||||
check-template-location: false
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev3
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user