Custom dataset of rundry report

Source: Internet
Author: User



Public class cfywdataset implements
Idatasetfactory {

Public static log = logfactory. getlog (cfywdataset. Class );

Private string datasetname = "ds_cfxx"; // dataset name
Private jdbctemplate Jt = (jdbctemplate) framework. getengine (). getcontainer (). getcomponent ("jdbctemplate ");
Private soarbaseservice = (soarbaseservice) framework. getengine (). getcontainer (). getcomponent ("soarbaseservice ");

Private Final Static string sfls = "0"; // historical

Public dataset createdataset (context, datasetconfig, Boolean B ){
Map map = context. getallparammap ();
// Passing Parameters
String fwidstr = (string) map. Get ("fwid ");
String qzidstr = (string) map. Get ("qinistr"); // qzid: fwid: ywslid,
String fwid = "";
Map <long, long> qzidmap = new hashmap <long, long> ();
If (stringutils. isnotempty (qzidstr )){
For (string Param: qzidstr. Split (",")){
If (stringutils. isnotempty (PARAM )){
Qzidmap. Put (long. valueof (Param. Split (":") [0]), long. valueof (Param. Split (":") [1]);
// Set the dataset name
Dataset reportdataset = new dataset (datasetname );
// Obtain the map set of report data
Reportdataset. addcol ("cfjg"); // closes the Organization
Reportdataset. addcol ("cfdjr"); // closes the registrant
Reportdataset. addcol ("cfwh"); // mark
Reportdataset. addcol ("cfqx"); // The sealing period.
Reportdataset. addcol ("cfsj"); // The sealing time.
Reportdataset. addcol ("fwid"); // house code
Reportdataset. addcol ("fwzl"); // The house is located
Reportdataset. addcol ("zxwh"); // The execution document number.
Reportdataset. addcol ("isnull"); // whether it is null, DS. Count () Changes
Reportdataset. addcol ("cfzt"); // check the status

........................................ ...................................

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: 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.