/ ** * is determined whether the payment confirmation of the need to make an account * @param payUuid payment confirmation UUID * @return * @throws ActiveRecordException * / public void checkAddAccount (QhyfController Controller, String payUuid) throws ActiveRecordException { String SQL = "the SELECT "+ " uuid, "+ " pay_id "+ " the FROM "+ " biz_supplement_account "+ " the WHERE "+ " sys_status = 1 "+ " the AND pay_id = ";? the Record = Db.findFirst the Record (SQL, payUuid); IF ( the Record! = null) { // query the payment confirmation of the account to prove the number of copies String documentSql = "the SELECT" + "need_num,"+ " valid_num " + "FROM " + "Biz_factoring_material_list" + "the WHERE" + "= sys_status. 1" + "? = The AND biz_id" + "the AND the document_id the IN ( 'BLCS1024', 'BLCS1025')"; List <the Record> documentRd = Db.find (documentSql, payUuid) ; IF (documentRd = null!) { Boolean = checkFlag to true; for (the Record RECORD2: documentRd) { IF (record2.getInt ( "validNum") <record2.getInt ( "needNum")) { checkFlag = to false; BREAK; } } IF (checkFlag) { // update the account information table complement, a complement to an account status update, "9: make an account confirmation completion" BizSupplementAccount bizSupplementAccount new new BizSupplementAccount = (); bizSupplementAccount.set("uuid", record.get("uuid")); bizSupplementAccount.set ( "supplementStatus", ". 9"); AssertUtils.isTrue (. Controller.merge (BizSupplementAccount.dao.getTable () getName (), bizSupplementAccount), " fill out the account status update failed"); } } } }