SELECT MI.* FROM MKT_INBILL MI OPTIONAL JOIN MKT_INBILL_PARENT MIP ON MI.INBILLPARENTID=MIP WHERE MI.SUBPRJID=:SUBPRJID AND MIP.INBILLSTATUS <> '终止'
这么写哪儿不对?????????????
MIP.INBILLSTATUS这个字段对了无数遍数据库
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP150210; 提示: 执行KSQL出错, KSQL: SELECT MI.* FROM MKT_INBILL MI OPTIONAL JOIN MKT_INBILL_PARENT MIP ON MI.INBILLPARENTID=MIP WHERE MI.SUBPRJID=:SUBPRJID AND MIP.INBILLSTATUS <> '终止'
--> sql:
--> binds: []
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.impl.TableUtilsImplement.ksqlSelect(Unknown Source)
at com.justep.system.data.KSQL.select(Unknown Source)
at CheckInbillAmount.getInBillAmount(CheckInbillAmount.java:54)
at InCheck.getInCheckAmount(InCheck.java:72)
... 27 more
Caused by: com.justep.exception.BusinessException: 编码: JUSTEP154038; 提示: MIP.INBILLSTATUS找不到对应的关系映射
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.util.Utils.check(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.confirmSymTable(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.handleAllRelation(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.selectSentenceNode(Unknown Source)
at com.justep.system.ksql.parser.QueryParser.start(Unknown Source)
at com.justep.system.ksql.parser.QueryParser.start(Unknown Source)
at com.justep.system.ksql.parser.AbstractParser.parse(Unknown Source)
... 33 more