Contract renewal back write error bug fix (Learning jar package)

Source: Internet
Author: User

1 PrivateBasedao Basedao;2  PublicBasedao Getbasedao () {3 if(Basedao = =NULL ){4Basedao =NewBasedao ();5 }6 returnBasedao;7 }8 9 @OverrideTen  Publicstring QUERYHIPSNDOCCTRTBYPK (String pk_psndoc_sub, string pk_psndoc) One throwsbusinessexception { AString sql = "SELECT * from HI_PSNDOC_CTRT where pk_psndoc_sub= '" +pk_psndoc_sub+ "' and Pk_psndoc = '" +pk_psndoc + "' and N VL (dr,0) = 0 "; -List<ctrtvo> Listvo = (list<ctrtvo>) Getbasedao (). ExecuteQuery (SQL,NewBeanlistprocessor (Ctrtvo.class));  - if(Listvo! =NULL&& listvo.size () > 0) { the return(String) listvo.get (0). Getpk_psndoc_sub (); -}Else{ - return""; - } +  -}

Write in an Access port

PrivateBasedao Basedao; PublicBasedao Getbasedao () {if(Basedao = =NULL) {Basedao=NewBasedao ();}returnBasedao;} @Override Publicstring QUERYHIPSNDOCCTRTBYPK (String pk_psndoc_sub, string pk_psndoc)throwsbusinessexception {String SQL= "SELECT * from HI_PSNDOC_CTRT where pk_psndoc_sub= '" +pk_psndoc_sub+ "' and Pk_psndoc = '" +pk_psndoc + "' and NVL (dr,0) = 0 "; List<CtrtVO> Listvo = (list<ctrtvo>) Getbasedao (). ExecuteQuery (SQL,NewBeanlistprocessor (Ctrtvo.class)); if(Listvo! =NULL&& listvo.size () > 0) {return(String) listvo.get (0). Getpk_psndoc_sub ();}Else{return"";}}/*** Based on primary key and people primary key query whether there is a person recorded in the HI_PSNDOC_CTRT table *@parampk_psndoc_sub*@parampk_psndoc*@return* @throwsbusinessexception*@author[email protected] Eric Tsang*/ PublicString QUERYHIPSNDOCCTRTBYPK (String pk_psndoc_sub,string pk_psndoc)throwsBusinessexception;

Contract renewal back write error bug fix (Learning jar package)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.