jiapeng 7 anos atrás
pai
commit
8a7f8fce97

+ 1 - 0
jfwAptOrm/src/main/java/org/jfw/apt/orm/core/model/where/WhereInColumn.java

63
	public void writeValue() {
63
	public void writeValue() {
64
		((InColumnWriterCache) this.getCwc()).setNullable(false);
64
		((InColumnWriterCache) this.getCwc()).setNullable(false);
65
		ClassWriter cw = this.getCwc().getCw();
65
		ClassWriter cw = this.getCwc().getCw();
66
		cw.checkJdbcParamIndex();
66
		cw.bL("if(!").w(this.nullableVarName).el("){");
67
		cw.bL("if(!").w(this.nullableVarName).el("){");
67
		cw.bL("for( ").w(loopVarName).w(" = 0 ; ").w(loopVarName).w(" < ").w(this.getName()).w(".length; ++").w(loopVarName).el("){");
68
		cw.bL("for( ").w(loopVarName).w(" = 0 ; ").w(loopVarName).w(" < ").w(this.getName()).w(".length; ++").w(loopVarName).el("){");
68
		this.ch.writeValue(this.getCwc(), false);
69
		this.ch.writeValue(this.getCwc(), false);