Browse Source

商品资源入库操作

master
xyiege 3 years ago
parent
commit
1e202ab259
  1. 7
      src/main/java/cn/chjyj/szwh/mapper/GoodsSourceMapper.java
  2. 46
      src/main/resources/mapper/szwh/GoodsSourceMapper.xml

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

@ -39,4 +39,11 @@ public interface GoodsSourceMapper {
List<GoodsSource> getGoodsSourceByMap(@Param("map") Map map,
@Param("start") int start,
@Param("limit") int limit);
/**
* 商品详情
* @param goodsSource
* @return
*/
int add(GoodsSource goodsSource);
}

46
src/main/resources/mapper/szwh/GoodsSourceMapper.xml

@ -59,21 +59,41 @@
where openid=#{openid};
</select>
<!--新增用户-->
<insert id="addUser" parameterType="cn.chjyj.szwh.bean.Goods" useGeneratedKeys="true" keyColumn="uid">
<!--新增商品资源-->
<insert id="add" parameterType="cn.chjyj.szwh.bean.GoodsSource" useGeneratedKeys="true" keyColumn="id">
insert into <include refid="tbName"/>
(uname,password,gender,urealname,ubirth,nickname,avatarurl,platfrom,sessionkey,openid)
(goods_isli_code,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 (
#{uname},
#{password},
#{gender},
#{urealname},
#{ubirth},
#{nickname},
#{avatarurl},
#{platfrom},
#{sessionkey},
#{openid}
#{goodsIsliCode},
#{servicecode},
#{linkcode},
#{publisherid},
#{registrant},
#{resolutionUrl},
#{sourceType},
#{sourceNameType},
#{sourceName},
#{sourceIdentify},
#{sourceFragment},
#{targetName},
#{targetNameType},
#{targetIdentify},
#{targetFragment},
#{targetFormat},
#{sourceData},
#{targetData},
#{metadataXml},
#{cancellationReason},
#{cancellationtime},
#{allocationtime},
#{datatype},
#{isDeleted}
)
</insert>

Loading…
Cancel
Save