第三方单据类型关联修改,

master
anthonywj 2 years ago
parent d6abb99481
commit 699974a05e

@ -272,13 +272,6 @@ public class ThrSystemController {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
//todo 第三方单据类型还未完成
// BussinessOriginTypeResponse bussinessOriginTypeResponse = bussinessOriginTypeService.finByLocalAction(basicThirdSysBusApiEntity.getCode());
// if (bussinessOriginTypeResponse != null) {
// basicThirdSysBusApiEntity.setThirdBuyCode(bussinessOriginTypeResponse.getThirdAction());
// basicThirdSysBusApiEntity.setThirdBuyName(bussinessOriginTypeResponse.getThirdName());
// }
boolean result = thrSystemBusApiService.saveBusTypes(thrSystemBusApiEntity);
if (result) {
return ResultVOUtils.success();

@ -2,25 +2,42 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.glxp.api.dao.thrsys.ThrSystemBusApiDao">
<update id="updateSysBusApi" parameterType="com.glxp.api.entity.thrsys.ThrSystemBusApiEntity">
UPDATE thr_system_bus_api
<trim prefix="set" suffixOverrides=",">
<if test="code != null">code=#{code},</if>
<if test="name != null">`name`=#{name},</if>
<if test="thirdBuyName != null">`thirdBuyName`=#{thirdBuyName},</if>
<if test="thirdBuyCode != null">`thirdBuyCode`=#{thirdBuyCode},</if>
<if test="thirdSys != null">thirdSys=#{thirdSys},</if>
<if test="url != null">url=#{url},</if>
<if test="type != null">`type`=#{type},</if>
<if test="remark != null">remark=#{remark},</if>
<if test="code != null">
code=#{code},
</if>
<if test="name != null">
`name`=#{name},
</if>
<if test="thirdBuyName != null">
`thirdBuyName`=#{thirdBuyName},
</if>
<if test="thirdBuyCode != null">
`thirdBuyCode`=#{thirdBuyCode},
</if>
<if test="thirdSys != null">
thirdSys=#{thirdSys},
</if>
<if test="url != null">
url=#{url},
</if>
<if test="type != null">
`type`=#{type},
</if>
<if test="remark != null">
remark=#{remark},
</if>
</trim>
WHERE id = #{id}
</update>
<select id="filterSysBusApi" parameterType="com.glxp.api.req.thrsys.FilterBasicThirdSysDetailRequest"
resultType="com.glxp.api.entity.thrsys.ThrSystemBusApiEntity">
SELECT * FROM thr_system_bus_api
SELECT thr_system_bus_api.*, tbo.name thirdBuyName
FROM thr_system_bus_api
left join thr_bustype_origin tbo on thr_system_bus_api.thirdBuyCode = tbo.action
<where>
<if test="key != '' and key != null">
AND code = #{code}
@ -31,11 +48,8 @@
<if test="code != '' and code != null">
AND code = #{code}
</if>
<if test="name != '' and name != null">
AND name = #{name}
</if>
<if test="thirdSysFk != '' and thirdSysFk != null">
AND thirdSys = #{thirdSysFk}
AND thr_system_bus_api.thirdSys = #{thirdSysFk}
</if>
</where>
</select>
@ -47,30 +61,26 @@
ignore
INTO thr_system_bus_api
(`code`, `name`, thirdBuyName, thirdBuyCode, `thirdSys`, url, `type`, remark)
values (
#{code},
values (#{code},
#{name},
#{thirdBuyName},
#{thirdBuyCode},
#{thirdSys},
#{url},
#{type},
#{remark}
)
#{remark})
</insert>
<insert id="saveBusTypes">
insert into thr_system_bus_api (code, `name`, thirdBuyName, thirdBuyCode, thirdSys, type)
values
<foreach collection="list" index="index" item="item" separator=",">
(
#{item.code},
(#{item.code},
#{item.name},
#{item.thirdBuyName},
#{item.thirdBuyCode},
#{item.thirdSys},
#{item.type}
)
#{item.type})
</foreach>
</insert>
@ -96,5 +106,4 @@
where thirdSys = #{thirdSys}
and type = #{type}
</select>
</mapper>

@ -2,3 +2,4 @@
CALL Pro_Temp_ColumnWork('io_order', 'fromReceiveBillNo', 'varchar(255) ', 1);
CALL Pro_Temp_ColumnWork('io_order', 'fromThrBillNo', 'varchar(255) ', 1);
CALL Pro_Temp_ColumnWork('thr_bustype_origin', 'thirdSysName', 'varchar(255) ', 3);
CALL Pro_Temp_ColumnWork('thr_system_bus_api', 'thirdBuyName', 'varchar(255) ', 3);

Loading…
Cancel
Save