博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mybatis 之 parameterType="java.util.List"
阅读量:7009 次
发布时间:2019-06-28

本文共 2682 字,大约阅读时间需要 8 分钟。

INSERT INTO member_role_conn (member_id,role_id,rank_id,time_rang,begin_time,end_time,long_date,get_time,is_delete,add_user,add_time,edit_user,edit_time) VALUES
(#{item.memberId},#{item.roleId},#{item.rankId},#{item.timeRang},#{item.beginTime},#{item.endTime},#{item.longDate},#{item.getTime},#{item.isDelete},#{item.addUser},#{item.addTime},#{item.editUser},#{item.editTime})
/**     *      * 批量新增     *      **/    public ServiceMessage
saveBatchMemberRoleConnRepModel( List
list) { try { memberRoleConnRepMapper.saveBatchMemberRoleConnRepModel(list); return super.returnCorrectResult("批量新增成功!"); } catch (Exception e) { logger.error(e.getMessage(), e); return super.returnException("批量新增异常!"); } }
/**     *      * 批量新增     *      **/     @Test     public  void testSaveBatch(){            MemberRoleConnRepModelService hessianServer = J1SOAHessianHelper.getService(url,MemberRoleConnRepModelService.class);            List
list = new ArrayList
(); MemberRoleConnRepModel obj = createObj() ; list.add(obj); ServiceMessage
result = hessianServer.saveBatchMemberRoleConnRepModel(list); System.out.println(JSONObject.fromObject(result)); }
private MemberRoleConnRepModel createObj() {            MemberRoleConnRepModel obj = new MemberRoleConnRepModel();              /**id**/              obj.setId();              /**会员ID**/              obj.setMemberId();              /**角色ID**/              obj.setRoleId();              /**有效时间限制(all/rang)                             obj.setTimeRang();              /**有效开始时间**/              obj.setBeginTime();              /**有效结束时间**/              obj.setEndTime();              /**持续时长(天)**/             obj.setLongDate();              /**获得时间**/              obj.setGetTime();              /**是否删除(Y/N)**/              obj.setIsDelete();              /**添加人**/              obj.setAddUser();              /**添加时间**/              obj.setAddTime();              /**修改人**/              obj.setEditUser();              /**修改时间**/              obj.setEditTime();            return obj;     }

 

 

 

 

public GoodsComment getTopGoodsEval(List list);

 

转载地址:http://rjttl.baihongyu.com/

你可能感兴趣的文章
Oracle dataGuard专题:Rman通过duplicate创建standby
查看>>
CCNA(Stand-ALONE)Lab2-Introduction to the Basic User Interface
查看>>
没有服务台,就没有ITSM
查看>>
加点自已内容的新内核下L7-FILTER的应用实例!
查看>>
FOSCommentBundle功能包:设置Doctrine ORM映射
查看>>
Eclipse下开发js
查看>>
Oracle RAC负载均衡和透明应用失败切换的配置和测试过程(一、测试名词解释)...
查看>>
linux 处理键盘 鼠标事件
查看>>
不要返回null之EmptyFactory
查看>>
Unity strip engine code 遇到執行不能之問題與解決
查看>>
关于Excle中的VLookUp的函数的使用
查看>>
Azure China (10) 使用Azure China SAS Token
查看>>
Spring-AOP实践 - 统计访问时间
查看>>
电子技术·笔记6(2013-05\06)
查看>>
Makefile简易模板
查看>>
Windows Azure Storage (23) 计算Azure VHD实际使用容量
查看>>
压力测试工具Siege介绍
查看>>
ASP.NET如何调用MySQL的存储过程
查看>>
Visual Studio 进行Excel相关开发,Microsoft.Office.Interop.Excel.dll库
查看>>
swfdump——从内存中提取swf的工具
查看>>