コード例 #1
0
ファイル: WipeService.java プロジェクト: mingcheong/OA
  // 根据当前任务号取得禀议详细信息
  @Transactional(readOnly = true)
  public WipeTask getWipeByTask(String taskId) {
    if (StringUtils.isEmpty(taskId)) return null;

    WipeTask wipeTask = new WipeTask();
    wipeTask.setTask(taskService.getTask(taskId));

    String wCode = (String) taskService.getVariable(taskId, "wCode");
    if (wCode != null)
      wipeTask.setWipe(
          wipeDao.findByProperty("wCode", wCode) == null
              ? null
              : wipeDao.findByProperty("wCode", wCode).get(0));
    return wipeTask;
  }
コード例 #2
0
ファイル: WipeService.java プロジェクト: mingcheong/OA
 // 根据禀议编号查询禀议详细内容
 public List<Wipe> selWipeByCode(String wCode) {
   return wipeDao.findByProperty("wCode", wCode);
 }