Exemple #1
0
  public void updateAf53(Af53DTO af53Dto) {
    if (af53Dto == null) {
      throw new BusinessException("F10301003BS-02:传入参数af53Dto为空!");
    }

    Af53 af53 = CommonHibernateDaoUtils.load(Af53.class, af53Dto.getAaz318());

    BeanTools.copyPropertiesIgnoreNull(af53Dto, af53);

    CommonHibernateDaoUtils.update(af53);
  }
Exemple #2
0
 public QueryApprovalVo operateApproval(QueryApprovalVo approvalVo) {
   String sql =
       "select * from APPROVAL_INFO_LIST where aclid = "
           + approvalVo.getAclid()
           + " and ailfl = 1 and aaz318 = "
           + approvalVo.getAaz318()
           + " and ailid="
           + approvalVo.getAilid();
   ApprovalInfoList a = CommonJdbcDaoUtils.get(sql, ApprovalInfoList.class);
   BeanTools.copyPropertiesIgnoreNull(approvalVo, a);
   CommonHibernateDaoUtils.update(a);
   if (approvalVo.getAilspfl() != null) {
     if (approvalVo.getAilspfl() == 1) {
       CommonJdbcDaoUtils.update(
           "update APPROVAL_INFO_LIST set ailspfl=1 where aaz318="
               + approvalVo.getAaz318()
               + " and ailfl=1 and ailspfl=0 and aclid<>"
               + approvalVo.getAclid());
     }
   }
   BeanTools.copyProperties(a, approvalVo);
   return approvalVo;
 }