提交查询台账基础物料
This commit is contained in:
parent
058e9db114
commit
7cf4ad5510
@ -607,6 +607,10 @@ public class BaseKnifeController extends BaseController {
|
||||
|
||||
// 对当前台账对象进行收录
|
||||
baseKnifeHashMapMap.get(item.getMbbBdMrlId()).get(item.getAreaCode()).add(item);
|
||||
|
||||
// 出库
|
||||
item.setKnifeFineState(2);
|
||||
baseKnifeService.updateBaseKnife(item);
|
||||
});
|
||||
|
||||
// 生成出库计划明细
|
||||
|
@ -55,7 +55,14 @@ public class BaseKnifeServiceImpl implements IBaseKnifeService {
|
||||
*/
|
||||
@Override
|
||||
public BaseKnife selectBaseKnifeByBaseKnifeId(Long baseKnifeId) {
|
||||
return baseKnifeMapper.selectBaseKnifeByBaseKnifeId(baseKnifeId);
|
||||
BaseKnife baseKnife = baseKnifeMapper.selectBaseKnifeByBaseKnifeId(baseKnifeId);
|
||||
// 查询基础物料
|
||||
if ("PRODUCT".equals(baseKnife.getItemOrProduct())) {
|
||||
BaseKnife baseKnifeWrapper = new BaseKnife();
|
||||
baseKnifeWrapper.setParentId(baseKnife.getBaseKnifeId());
|
||||
baseKnife.setBaseKnifeList(baseKnifeMapper.selectBaseKnifeList(baseKnifeWrapper));
|
||||
}
|
||||
return baseKnife;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -205,66 +205,9 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBaseKnifeByBaseKnifeId" parameterType="Long" resultMap="BaseKnifeMdItemResult">
|
||||
select a.BASE_KNIFE_ID
|
||||
, a.MBB_BD_MRL_ID
|
||||
, a.RFID
|
||||
, a.KNIFE_CODE
|
||||
, a.KNIFE_NAME
|
||||
, a.KNIFE_UNIT
|
||||
, a.KNIFE_TYPE
|
||||
, a.SAFE_STOCK
|
||||
, a.STANDARD_QUANTITY
|
||||
, a.AREA_CODE
|
||||
, a.KNIFE_LIFE
|
||||
, a.KNIFE_FINE_STATE
|
||||
, a.RESET_COUNT
|
||||
, a.ITEM_OR_PRODUCT
|
||||
, a.PLAN_SHEET
|
||||
, a.PARENT_ID
|
||||
, a.IS_VALID
|
||||
, a.ZD_TASK_ID
|
||||
, a.REMARK
|
||||
, a.ATTR1
|
||||
, a.ATTR2
|
||||
, a.ATTR3
|
||||
, a.ATTR4
|
||||
, a.CREATE_BY
|
||||
, a.CREATE_TIME
|
||||
, a.UPDATE_BY
|
||||
, a.UPDATE_TIME
|
||||
, a.IS_LOCKED
|
||||
, a.LOCKED_START_TIME
|
||||
, a.LOCKED_END_TIME
|
||||
, b.ITEM_ID as sub_ITEM_ID
|
||||
, b.ITEM_CODE as sub_ITEM_CODE
|
||||
, b.ITEM_NAME as sub_ITEM_NAME
|
||||
, b.SPECIFICATION as sub_SPECIFICATION
|
||||
, b.UNIT_OF_MEASURE as sub_UNIT_OF_MEASURE
|
||||
, b.ITEM_OR_PRODUCT as sub_ITEM_OR_PRODUCT
|
||||
, b.ITEM_TYPE_ID as sub_ITEM_TYPE_ID
|
||||
, b.ITEM_TYPE_CODE as sub_ITEM_TYPE_CODE
|
||||
, b.ITEM_TYPE_NAME as sub_ITEM_TYPE_NAME
|
||||
, b.ENABLE_FLAG as sub_ENABLE_FLAG
|
||||
, b.SAFE_STOCK_FLAG as sub_SAFE_STOCK_FLAG
|
||||
, b.MIN_STOCK as sub_MIN_STOCK
|
||||
, b.MAX_STOCK as sub_MAX_STOCK
|
||||
, b.REMARK as sub_REMARK
|
||||
, b.ATTR1 as sub_ATTR1
|
||||
, b.ATTR2 as sub_ATTR2
|
||||
, b.ATTR3 as sub_ATTR3
|
||||
, b.ATTR4 as sub_ATTR4
|
||||
, b.CREATE_BY as sub_CREATE_BY
|
||||
, b.CREATE_TIME as sub_CREATE_TIME
|
||||
, b.UPDATE_BY as sub_UPDATE_BY
|
||||
, b.UPDATE_TIME as sub_UPDATE_TIME
|
||||
, b.HIGH_VALUE as sub_HIGH_VALUE
|
||||
, b.UNIT_NAME as sub_UNIT_NAME
|
||||
, b.MODEL_NUMBER as sub_MODEL_NUMBER
|
||||
, b.STANDARD_NUMBER as sub_STANDARD_NUMBER
|
||||
from BASE_KNIFE a
|
||||
left join MD_ITEM b on b.ITEM_ID = a.BASE_KNIFE_ID
|
||||
where a.BASE_KNIFE_ID = #{baseKnifeId}
|
||||
<select id="selectBaseKnifeByBaseKnifeId" parameterType="Long" resultMap="BaseKnifeResult">
|
||||
<include refid="selectBaseKnifeVo"/>
|
||||
where BK.BASE_KNIFE_ID = #{baseKnifeId}
|
||||
</select>
|
||||
|
||||
<select id="selectBaseKnifeByRfid" parameterType="Long" resultMap="BaseKnifeMdItemResult">
|
||||
|
Loading…
Reference in New Issue
Block a user