コード例 #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
 @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;
 }