2022/02/24

// 批量插入

<insert id="addXx" paramType="java.util.List">
	insert into ByFlx_Abc
	(ID,AA,BB,CC)
	select ByFlx_Abc_AUTOID.nextVal,m.* from (
	<foreach collection="list" item="item" index="index" separator="UNIONALL">
		select
		#{item.aa,jdbcType=VARCHAR}
		,#{item.bb,jdbcType=VARCHAR}
		,#{item.cc,jdbcType=VARCHAR}
		from dual 
	</foreach>
	) m
</insert>

// 批量插入uuid

<insert id="addlist" parameterType="java.util.list">
    insert all
    <foreach collection="list" item="info" index="index">
        into crs_xx(
        SERIALNO
        ,DATA
        ,CUST_ID
        )
        values(
        #{info.serialno,jdbcType=NUMBER},
        #{info.date,jdbcType=DATE},
        #{info.custId,jdbcType=VARCHAR}
        )
    </foreach>
    select 1 from dual
</insert>

// 存储过程

<select id="taskByFlxXx" statementType="CALLABLE" resultMap="ByFlxXxResultMap">
	{ call  ByFlx_Xx(#{qc.date,jdbcType=VARCHAR,mode=In})}
</select>

// 获取配置文件中数据原始方法
File file = new File(PropertiesUtil.getValue("report-config.properties","TEMPFILEPATH"));

//1.java 基础知识点

	String emailNs = String.join(";",emailNList);
	"unhappy".subString(2) // "happy"
	"hamburger".suString(4,8) // “urger”
	//date转换
	java.sql.Date endTime = new java.sql.Date(new Date().getTime());
	//BeanCopy
	BeanUtils.copyProperties(qc,VoCondition); //(源对象,目标对象)
	Copier.copy();
	//==前端 Object.assign(params,this.formBean)(es6-浅复制,小心同名覆盖)

// 反射

Class query = input.getClass();
Field[] fd = query.getDeclaredFields();
for(Field field : fd) {
	if(field.isAnnotationPresent(QCondition.clss)) {
		field.setAccessible(true);
		QCondition condition = field.getAnnotation(QCondition.clss);
		Object ob = field.get(input);
		String value = ob == null ? "" : ob.toString();
	}
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
192.168.85.1 - - [26/Jun/2022:06:07:07 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 24 192.168.85.1 - - [26/Jun/2022:06:07:11 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 24 192.168.85.1 - - [26/Jun/2022:06:07:11 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 24 192.168.85.1 - - [26/Jun/2022:06:07:11 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 200 12925 192.168.85.1 - - [26/Jun/2022:06:07:11 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 200 12925 192.168.85.1 - - [26/Jun/2022:06:07:11 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 200 12925 192.168.85.1 - - [26/Jun/2022:06:07:11 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 200 14 192.168.85.1 - - [26/Jun/2022:06:08:06 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 15 192.168.85.1 - - [26/Jun/2022:06:08:16 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 1227 192.168.85.1 - - [26/Jun/2022:06:10:15 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 79 192.168.85.1 - - [26/Jun/2022:06:13:25 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 404 752 192.168.85.1 - - [26/Jun/2022:06:16:42 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 35 192.168.85.1 - - [26/Jun/2022:06:16:57 -0400] "GET //struts2-showcase/hhh.jsp HTTP/1.1" 403 642 192.168.85.1 - - [26/Jun/2022:06:18:55 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 35 192.168.85.1 - - [26/Jun/2022:06:19:02 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 35 192.168.85.1 - - [26/Jun/2022:06:19:09 -0400] "GET //struts2-showcase/hhh1.jsp HTTP/1.1" 403 642 192.168.85.1 - - [26/Jun/2022:06:19:34 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 400 192.168.85.1 - - [26/Jun/2022:06:20:37 -0400] "POST /struts2-showcase/index.action HTTP/1.1" 500 5 192.168.85.1 - - [26/Jun/2022:06:20:42 -0400] "GET //struts2-showcase/hhh1.jsp HTTP/1.1" 403 642 192.168.85.1 - - [26/Jun/2022:06:20:46 -0400] "GET //struts2-showcase/hhh.jsp HTTP/1.1" 403 642 192.168.85.1 - - [26/Jun/2022:06:20:51 -0400] "GET /struts2-showcase/hhh.jsp HTTP/1.1" 403 642
07-12

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值