示例#1
0
 @Override
 protected void doMyQuery(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
     throws Exception {
   JcFcQkTjDomain domain = (JcFcQkTjDomain) baseBusinessDomain;
   List<BaseBusinessDomain> dataList = dao.queryList(domain);
   Calendar cal = Calendar.getInstance();
   cal.set(cal.DAY_OF_YEAR, 1);
   SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
   domain.setRqq(sim.format(cal.getTime()));
   domain.setDataList(dataList);
 }
示例#2
0
 @Override
 protected void doMyInit(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
     throws Exception {
   JcFcQkTjDomain domain = (JcFcQkTjDomain) baseBusinessDomain;
   domain.setSjJgbm(userDomain.getGsbm());
   Calendar cal = Calendar.getInstance();
   cal.set(cal.DAY_OF_YEAR, 1);
   SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
   domain.setRqq(sim.format(cal.getTime()));
   domain.setRqz(SysDateUtil.getCurrentDate());
 }