Browse Source

商品资源入库操作

master
xyiege 4 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, List<GoodsSource> getGoodsSourceByMap(@Param("map") Map map,
@Param("start") int start, @Param("start") int start,
@Param("limit") int limit); @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}; where openid=#{openid};
</select> </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"/> 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 ( values (
#{uname}, #{goodsIsliCode},
#{password}, #{servicecode},
#{gender}, #{linkcode},
#{urealname}, #{publisherid},
#{ubirth}, #{registrant},
#{nickname}, #{resolutionUrl},
#{avatarurl}, #{sourceType},
#{platfrom}, #{sourceNameType},
#{sessionkey}, #{sourceName},
#{openid} #{sourceIdentify},
#{sourceFragment},
#{targetName},
#{targetNameType},
#{targetIdentify},
#{targetFragment},
#{targetFormat},
#{sourceData},
#{targetData},
#{metadataXml},
#{cancellationReason},
#{cancellationtime},
#{allocationtime},
#{datatype},
#{isDeleted}
) )
</insert> </insert>

Loading…
Cancel
Save