Browse Source

插入订单商品资源

master
xyiege 3 years ago
parent
commit
9979058700
  1. 7
      src/main/java/cn/chjyj/szwh/mapper/OrderGoodsSourceMapper.java
  2. 29
      src/main/resources/mapper/szwh/OrderGoodsSourceMapper.xml

7
src/main/java/cn/chjyj/szwh/mapper/OrderGoodsSourceMapper.java

@ -25,4 +25,11 @@ public interface OrderGoodsSourceMapper {
* @return
*/
List<OrderGoodsSource> searchOrderGoodsSource(@Param("map") Map somap);
/**
* 新增订单商品资源资源
* @param orderGoodsSource
* @return
*/
int addOrderGoodsSource(OrderGoodsSource orderGoodsSource);
}

29
src/main/resources/mapper/szwh/OrderGoodsSourceMapper.xml

@ -38,5 +38,34 @@
</where>
</select>
<!--新增订单资源 -->
<insert id="addOrderGoodsSource" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
INSERT INTO <include refid="tbName"/>
(detail_id ,batchcode,servicecode,linkcode,publisherid,registrant,resolution_url,
source_type,source_name_type,source_name,
sourceIdentify,source_fragment,target_name,target_name_type,
targetIdentify,target_fragment,targetFormat,source_data,
target_data,metadataXml,cancellation_reason,cancellationtime,
allocationtime,datatype,is_deleted)
VALUES (
#{detailId},
#{batchcode},
#{servicecode},
#{linkcode},
#{publisherid},#{registrant},#{resolutionUrl},
#{sourceType},#{sourceNameType},#{sourceName},
#{sourceIdentify},#{sourceFragment},#{targetName},#{targetNameType},
#{targetIdentify},#{targetFragment},#{targetFormat},
#{sourceData},
#{targetData},
#{metadataXml},
#{cancellationReason},
#{cancellationtime},
#{allocationtime},
#{datatype},
#{isDeleted}
)
</insert>
</mapper>
Loading…
Cancel
Save