2024-5-15 基础信息-产品-新增附属属性

master
A0010407 9 months ago
parent f13ce73f4f
commit e548b0e3ce

@ -69,7 +69,7 @@ public class BaseProductAttachedController extends BaseController {
/**
*
*/
@RequiresPermissions("wms:attached:add")
@RequiresPermissions("wms:attached:edit")
@Log(title = "物料附属信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BaseProductAttached baseProductAttached) {

@ -3,6 +3,7 @@ package com.op.wms.service.impl;
import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.op.common.core.utils.uuid.IdUtils;
import com.op.wms.mapper.BaseProductAttachedMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -53,6 +54,7 @@ public class BaseProductAttachedServiceImpl implements IBaseProductAttachedServi
@Override
@DS("#header.poolName")
public int insertBaseProductAttached(BaseProductAttached baseProductAttached) {
baseProductAttached.setId(IdUtils.fastSimpleUUID());
return baseProductAttachedMapper.insertBaseProductAttached(baseProductAttached);
}

@ -84,8 +84,8 @@
<if test="productCode != null">product_code,</if>
<if test="category != null">category,</if>
<if test="pc != null">pc,</if>
<if test="iei != null">iei,</if>
<if test="manStandar != null">man_standar,</if>
iei,
man_standar,
<if test="sprayWay != null">spray_way,</if>
<if test="blankDiameter != null">blank_diameter,</if>
<if test="blankNo != null">blank_no,</if>
@ -104,8 +104,8 @@
<if test="productCode != null">#{productCode},</if>
<if test="category != null">#{category},</if>
<if test="pc != null">#{pc},</if>
<if test="iei != null">#{iei},</if>
<if test="manStandar != null">#{manStandar},</if>
#{iei},
#{manStandar},
<if test="sprayWay != null">#{sprayWay},</if>
<if test="blankDiameter != null">#{blankDiameter},</if>
<if test="blankNo != null">#{blankNo},</if>

Loading…
Cancel
Save