TProjectInvestigateServiceImpl.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. package com.ruoyi.invest.service.impl;
  2. import java.util.List;
  3. import com.ruoyi.common.utils.DateUtils;
  4. import com.ruoyi.common.utils.uuid.IdUtils;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import com.ruoyi.invest.mapper.TProjectInvestigateMapper;
  8. import com.ruoyi.invest.domain.TProjectInvestigate;
  9. import com.ruoyi.invest.service.ITProjectInvestigateService;
  10. /**
  11. * 尽调关联Service业务层处理
  12. *
  13. * @author zjc
  14. * @date 2024-03-13
  15. */
  16. @Service
  17. public class TProjectInvestigateServiceImpl implements ITProjectInvestigateService
  18. {
  19. @Autowired
  20. private TProjectInvestigateMapper tProjectInvestigateMapper;
  21. /**
  22. * 查询尽调关联
  23. *
  24. * @param id 尽调关联主键
  25. * @return 尽调关联
  26. */
  27. @Override
  28. public TProjectInvestigate selectTProjectInvestigateById(String id)
  29. {
  30. return tProjectInvestigateMapper.selectTProjectInvestigateById(id);
  31. }
  32. /**
  33. * 查询尽调关联列表
  34. *
  35. * @param tProjectInvestigate 尽调关联
  36. * @return 尽调关联
  37. */
  38. @Override
  39. public List<TProjectInvestigate> selectTProjectInvestigateList(TProjectInvestigate tProjectInvestigate)
  40. {
  41. return tProjectInvestigateMapper.selectTProjectInvestigateList(tProjectInvestigate);
  42. }
  43. /**
  44. * 新增尽调关联
  45. *
  46. * @param tProjectInvestigate 尽调关联
  47. * @return 结果
  48. */
  49. @Override
  50. public int insertTProjectInvestigate(TProjectInvestigate tProjectInvestigate)
  51. {
  52. tProjectInvestigate.setCreateTime(DateUtils.getNowDate());
  53. return tProjectInvestigateMapper.insertTProjectInvestigate(tProjectInvestigate);
  54. }
  55. /**
  56. * 修改尽调关联
  57. *
  58. * @param tProjectInvestigate 尽调关联
  59. * @return 结果
  60. */
  61. @Override
  62. public int updateTProjectInvestigate(TProjectInvestigate tProjectInvestigate)
  63. {
  64. tProjectInvestigate.setUpdateTime(DateUtils.getNowDate());
  65. return tProjectInvestigateMapper.updateTProjectInvestigate(tProjectInvestigate);
  66. }
  67. /**
  68. * 批量删除尽调关联
  69. *
  70. * @param ids 需要删除的尽调关联主键
  71. * @return 结果
  72. */
  73. @Override
  74. public int deleteTProjectInvestigateByIds(String[] ids)
  75. {
  76. return tProjectInvestigateMapper.deleteTProjectInvestigateByIds(ids);
  77. }
  78. /**
  79. * 删除尽调关联信息
  80. *
  81. * @param id 尽调关联主键
  82. * @return 结果
  83. */
  84. @Override
  85. public int deleteTProjectInvestigateById(String id)
  86. {
  87. return tProjectInvestigateMapper.deleteTProjectInvestigateById(id);
  88. }
  89. /**
  90. * 批量删除尽调关联
  91. * @param ids 需要删除的尽调关联主键
  92. * @return
  93. */
  94. @Override
  95. public int updateTProjectInvestigateByIds(String[] ids) {
  96. return tProjectInvestigateMapper.updateTProjectInvestigateByIds(ids);
  97. }
  98. /**
  99. * 根据项目ID获取尽调数据
  100. * @param projectPoolId
  101. * @return
  102. */
  103. @Override
  104. public List<TProjectInvestigate> listProjectPoolId(String projectPoolId) {
  105. return tProjectInvestigateMapper.listProjectPoolId(projectPoolId);
  106. }
  107. /**
  108. * 根据项目ID获取最新尽调数据
  109. * @param projectPoolId
  110. * @return
  111. */
  112. @Override
  113. public TProjectInvestigate listProjectPoolIdNew(String projectPoolId) {
  114. return tProjectInvestigateMapper.listProjectPoolIdNew(projectPoolId);
  115. }
  116. /**
  117. * 修改尽调完成
  118. * @param id
  119. * @return
  120. */
  121. @Override
  122. public int editStatus(String id) {
  123. return tProjectInvestigateMapper.editStatus(id);
  124. }
  125. }