基础信息客户+工艺bom

highway
A0010407 1 year ago
parent ac62f12294
commit 087174b6f6

@ -68,7 +68,7 @@
<resultMap type="BomComponent" id="BomComponentResult"> <resultMap type="BomComponent" id="BomComponentResult">
<result property="handle" column="handle" /> <result property="handle" column="handle" />
<result property="bomCode" column="bom_code" /> <result property="bomCode" column="bom_code" />
<result property="bomName" column="product_desc_zh" /> <result property="productDescZh" column="product_desc_zh" />
<result property="site" column="site" /> <result property="site" column="site" />
<result property="productCode" column="product_code" /> <result property="productCode" column="product_code" />
<result property="cumc" column="cumc" /> <result property="cumc" column="cumc" />
@ -305,17 +305,16 @@
</select> </select>
<select id="selectBaseBomComponentList" parameterType="BomComponent" resultMap="BomComponentResult"> <select id="selectBaseBomComponentList" parameterType="BomComponent" resultMap="BomComponentResult">
-- select bbc.bom_code,bpc1.product_desc_zh <!--select distinct bbc.bom_code,bp.product_desc_zh,right(bp.product_code,11) as pc,bbc.product_code-->
-- from base_bom_component bbc,base_product_copy1 bpc1 select bbc.bom_code,b1.product_desc_zh,bbc.product_code,bbc.component,bp.product_desc_zh as componentName
-- left join base_product_copy1 bpc1 on bbc.product_code = (right(bpc1.product_code,11)) from base_bom_component bbc
-- Where left join base_product b1 on right(b1.product_code,11) = bbc.product_code
<!-- <if test="bomCode != null and bomCode != ''"> and bom_code = #{bomCode}</if>--> left join base_product bp on right(bp.product_code,11) = bbc.component
-- bbc.product_code = right(bpc1.product_code,11) <where>
select distinct bbc.bom_code,bp.product_desc_zh,right(bp.product_code,11) as pc,bbc.product_code <if test="bomCode != null and bomCode != ''"> and bom_code like concat('%', #{bomCode}, '%')</if>
from base_bom_component bbc,base_product bp <if test="productDescZh != null and productDescZh != ''"> and b1.product_desc_zh like concat('%', #{productDescZh}, '%')</if>
Where <!-- <if test="component != null and component != ''"> and component like concat('%', #{component}, '%')</if>-->
bbc.product_code = right(bp.product_code,11) </where>
<if test="bomCode != null and bomCode != ''"> and bom_code = #{bomCode}</if>
</select> </select>
<select id="getWorkCenterList" parameterType="SysFactory" resultMap="SysFactoryResult"> <select id="getWorkCenterList" parameterType="SysFactory" resultMap="SysFactoryResult">

@ -80,9 +80,9 @@ public class SysCustomerController extends BaseController {
sysCustomer.setCreateBy(SecurityUtils.getUsername()); sysCustomer.setCreateBy(SecurityUtils.getUsername());
sysCustomer.setCreateTime(DateUtils.getNowDate()); sysCustomer.setCreateTime(DateUtils.getNowDate());
if (sysCustomerService.checkClientCodeUnique(sysCustomer)) { if (sysCustomerService.checkClientCodeUnique(sysCustomer)) {
return AjaxResult.error("组织编码已存在!"); return AjaxResult.error("客户编码已存在!");
}else if(sysCustomerService.checkClientNameUnique(sysCustomer)){ }else if(sysCustomerService.checkClientNameUnique(sysCustomer)){
return AjaxResult.error("组织名称已存在!"); return AjaxResult.error("客户已存在!");
}else{ }else{
return toAjax(sysCustomerService.insertSysCustomer(sysCustomer)); return toAjax(sysCustomerService.insertSysCustomer(sysCustomer));
} }

Loading…
Cancel
Save