Пример #1
0
 @Override
 public int isShelf(ProjectStatusReq req) {
   // 1.修改项目表project上下架状态
   int a = projectDao.isShelf(req);
   // 2.projectlog添加日志记录
   if (a > 0) {
     ProjectLogModel pLogModel = new ProjectLogModel();
     pLogModel.setProjectId(req.getProjectId());
     pLogModel.setIsDel(0);
     pLogModel.setOperater(req.getOperater());
     pLogModel.setRemark(req.getLogRemark());
     int b = projectLogDao.insert(pLogModel);
     if (b > 0) {
       return 1;
     }
   }
   return 0;
 }
Пример #2
0
 /*
  * 项目审核 通过or拒绝 wangchao
  */
 @Override
 @Transactional(rollbackFor = Exception.class, timeout = 30)
 public int audit(ProjectAuditReq req) {
   // 记日志,更新审核状态
   ProjectLogModel pLogModel = new ProjectLogModel();
   pLogModel.setProjectId(req.getProjectId());
   pLogModel.setIsDel(0);
   pLogModel.setOperater(req.getAuditName());
   pLogModel.setRemark(req.getLogRemark());
   int a = projectLogDao.insert(pLogModel);
   if (a > 0) {
     int b = projectDao.audit(req);
     if (b > 0) {
       return 1;
     }
   }
   return 0;
 }
Пример #3
0
 @Override
 @Transactional(rollbackFor = Exception.class, timeout = 30)
 public int modifyProjectStatus(ProjectStatusReq req) {
   // 1.修改项目表project融资状态
   int a = projectDao.modifyProjectStatus(req);
   // 2.projectlog添加日志记录
   if (a > 0) {
     ProjectLogModel pLogModel = new ProjectLogModel();
     pLogModel.setProjectId(req.getProjectId());
     pLogModel.setIsDel(0);
     pLogModel.setOperater(req.getOperater());
     pLogModel.setRemark(req.getLogRemark());
     int b = projectLogDao.insert(pLogModel);
     if (b > 0) {
       return 1;
     }
   }
   return 0;
 }