Esempio n. 1
0
  @Override
  protected void doMyInitMx(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain)
      throws Exception {
    CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
    dao.initDomainMx(domain);

    domain.setJbrCzyDjxh(userDomain.getCzyDjxh());

    domain.setSsJgbm(userDomain.getGsbm());
  }
Esempio n. 2
0
  // @Transactional(readOnly = true, propagation = Propagation.REQUIRED)
  public void plDj(BaseBusinessDomain baseBusinessDomain, UserDomain userDomain) throws Exception {
    CwYsyfSrdjDomain domain = (CwYsyfSrdjDomain) baseBusinessDomain;
    List<String> ysyfDjxhs = domain.getYsyfDjxhs();
    if (null == ysyfDjxhs || ysyfDjxhs.isEmpty()) return;

    // 删除结算-开票申请-对帐清单
    for (String xh : ysyfDjxhs) {

      CwYsyfSrdjDomain srdjDmain = (CwYsyfSrdjDomain) dao.getYsyfSrdj(xh);
      CwYsyfSrdjDomain srdjDom = new CwYsyfSrdjDomain();

      srdjDom.setYsyfDjxh(srdjDmain.getYsyfDjxh());
      srdjDom.setYfjsfDm(srdjDmain.getYfjsfDm());
      srdjDom.setYfjsfDjxh(srdjDmain.getYfjsfDjxh());
      if (StringUtils.isNotEmpty(srdjDmain.getYfjsfDjmc())) {
        srdjDom.setFkfmc(srdjDmain.getYfjsfDjmc());
      } else {
        srdjDom.setFkfmc(srdjDmain.getYfjsfMc());
      }
      //			String yhCshDjxh = cshDao.getYhCshDjxhWhenXj(userDomain.getGsbm());
      //			if(StringUtils.isBlank(yhCshDjxh)){
      //				throw new DiyServiceException("请先在货币资产初始化中维护现金资产!");
      //			}
      srdjDom.setYhCshDjxh(domain.getYhCshDjxh());
      srdjDom.setRq(domain.getRq());
      srdjDom.setZcflDm(domain.getZcflDm());
      if ("12".equals(domain.getZcflDm())) {
        srdjDom.setZffsDm("2");
      } else if ("11".equals(domain.getZcflDm())) {
        srdjDom.setZffsDm("1");
      } else {
        srdjDom.setZffsDm("3");
      }
      srdjDom.setJe(srdjDmain.getWsfJe());
      srdjDom.setJbrCzyDjxh(userDomain.getCzyDjxh());
      srdjDom.setDjJgbm(userDomain.getBmbm());
      srdjDom.setSsJgbm(userDomain.getGsbm());
      srdjDom.setBz("批量登记产生!");
      dao.saveDomain(srdjDom, userDomain);
      dao.callPHyglCwglSrdjHxcl(srdjDom.getSrDjxh(), "0");
    }
  }