3/6 thrsys 优化1.0

dev_2.5_ocean
wangwei 4 months ago
parent eaed85030b
commit 2bb4c8b869

@ -18,8 +18,6 @@ public interface ThrOrderDao extends BaseMapperPlus<ThrOrderDao, ThrOrderEntity,
boolean insertThrOrder(ThrOrderEntity thrCorpEntity);
boolean importThrOrder(ThrOrderEntity thrCorpEntity);
boolean insertThrOrders(@Param("thrOrderEntities") List<ThrOrderEntity> thrOrderEntities);
boolean deleteById(@Param("id") String id);

@ -17,7 +17,6 @@ public interface ThrOrderDetailDao extends BaseMapperPlus<ThrOrderDetailDao, Thr
boolean insertThrOrderDetail(ThrOrderDetailEntity thrOrderDetailEntity);
boolean importThrOrderDetail(ThrOrderDetailEntity thrOrderDetailEntity);
boolean insertThrOrderDetails(@Param("thrOrderDetailEntities") List<ThrOrderDetailEntity> thrOrderDetailEntities);

@ -18,24 +18,8 @@ public interface ThrSystemBusApiDao extends BaseMapperPlus<ThrSystemBusApiDao, T
List<ThrSystemBusApiEntity> filterSysBusApi(FilterBasicThirdSysDetailRequest filterBasicThirdSysDetailRequest);
/**
*
*/
boolean saveBusTypes(@Param("list") List<ThrSystemBusApiEntity> list);
boolean deleteById(@Param("id") Integer id);
ThrSystemBusApiEntity selectByCode(@Param("code") String code);
/**
*
*
* @return
*/
List<String> selectAllCode();
/**
* ID
*/
int countByThirdSysAndType(@Param("thirdSys") String thirdSys, @Param("type") int type);
}

@ -15,14 +15,8 @@ public interface ThrSystemDao extends BaseMapper<ThrSystemEntity> {
ThrSystemEntity selectByThirdId(@Param("thirdId") String thirdId);
List<ThrSystemEntity> filterBasicThiSys(FilterBasicThirdSysRequest filterBasicThirdSysRequest);
/**
* ID
*/
List<String> selectEnabledThirdId();
/**
*
*/

@ -75,35 +75,6 @@
#{remark})
</insert>
<insert id="importThrOrder" keyProperty="id" parameterType="com.glxp.api.entity.thrsys.ThrOrderEntity">
replace
INTO thr_order
(id, billFlag, billNo, billdate, billType, corpId, corpName, inoutType, deptCode,
invCode, thirdSysFk, createUser, createTime, updateUser, updateTime, reviewUser, reviewTime, address,
linkMan, linkTel, remark)
values (#{id},
#{billFlag},
#{billNo},
#{billdate},
#{billType},
#{corpId},
#{corpName},
#{inoutType},
#{deptCode},
#{invCode},
#{thirdSysFk},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{reviewUser},
#{reviewTime},
#{address},
#{linkMan},
#{linkTel},
#{remark})
</insert>
<insert id="insertThrOrders" keyProperty="id" parameterType="java.util.List">
replace INTO thr_order
(billFlag, billNo, billdate, billType, corpId, corpName, inoutType, deptCode,

@ -48,39 +48,6 @@
#{remark})
</insert>
<insert id="importThrOrderDetail" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrOrderDetailEntity">
replace
INTO thr_order_detail
(id, productId, productName, spec, batchNo, expireDate, productDate, count, reCount, orderIdFk, thirdSysFk,
supId,
supName, price, corpName, ylqxzcrbarmc, zczbhhzbapzbh, manufactory, createUser, createTime, updateUser,
updateTime, remark)
values (#{id},
#{productId},
#{productName},
#{spec},
#{batchNo},
#{expireDate},
#{productDate},
#{count},
#{reCount},
#{orderIdFk},
#{thirdSysFk},
#{supId},
#{supName},
#{price},
#{corpName},
#{ylqxzcrbarmc},
#{zczbhhzbapzbh},
#{manufactory},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{remark})
</insert>
<insert id="insertThrOrderDetails" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
replace INTO thr_order_detail
(productId, productName, spec, batchNo, expireDate, productDate, count, reCount, orderIdFk, thirdSysFk,

@ -54,7 +54,6 @@
</where>
</select>
<insert id="insertSysBusApi" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrSystemBusApiEntity">
insert
@ -70,18 +69,6 @@
#{remark}, #{fromCorp})
</insert>
<insert id="saveBusTypes">
insert into thr_system_bus_api (code, `name`, thirdBuyCode, thirdSys, type, fromCorp)
values
<foreach collection="list" index="index" item="item" separator=",">
(#{item.code},
#{item.name},
#{item.thirdBuyCode},
#{item.thirdSys},
#{item.type}#{item.fromCorp})
</foreach>
</insert>
<delete id="deleteById">
delete
from thr_system_bus_api
@ -93,15 +80,4 @@
where code = #{code}
</select>
<select id="selectAllCode" resultType="java.lang.String">
select code
from thr_system_bus_api
</select>
<select id="countByThirdSysAndType" resultType="int">
select count(*)
from thr_system_bus_api
where thirdSys = #{thirdSys}
and type = #{type}
</select>
</mapper>

@ -43,11 +43,6 @@
FROM thr_system
WHERE thirdId = #{thirdId}
</select>
<select id="selectEnabledThirdId" resultType="java.lang.String">
select thirdId
from thr_system
where enabled = true
</select>
<select id="selectCountByThirdName" resultType="java.lang.Integer">
select count(*)
from thr_system
@ -73,4 +68,4 @@
</if>
</where>
</select>
</mapper>
</mapper>

Loading…
Cancel
Save