Ver código fonte

新增项目阶段接口

zjc 11 meses atrás
pai
commit
d5f543c10d

+ 13 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/invest/TProjectPoolController.java

@@ -95,6 +95,19 @@ public class TProjectPoolController extends BaseController
         return getDataTable(list);
     }
 
+    /**
+     * 查询项目池列表
+     */
+    @ApiOperation("查询项目阶段列表")
+    @PreAuthorize("@ss.hasPermi('invest:pool:list')")
+    @GetMapping("/listStage")
+    public TableDataInfo listStage(TProjectPool tProjectPool)
+    {
+        startPage();
+        List<TProjectPool> list = tProjectPoolService.selectTProjectPoolListStage(tProjectPool);
+        return getDataTable(list);
+    }
+
     /**
      * 查询评估考察列表
      */

+ 9 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/mapper/TProjectPoolMapper.java

@@ -29,6 +29,14 @@ public interface TProjectPoolMapper
      */
     public List<TProjectPool> selectTProjectPoolList(TProjectPool tProjectPool);
 
+    /**
+     * 查询项目阶段列表
+     *
+     * @param tProjectPool 项目池
+     * @return 项目池集合
+     */
+    public List<TProjectPool> selectTProjectPoolListStage(TProjectPool tProjectPool);
+
     /**
      * 新增项目池
      * 
@@ -106,4 +114,5 @@ public interface TProjectPoolMapper
      * @return
      */
     int updateTProjectPoolByDecisionFlag(@Param("id") String id,@Param("flag") String flag);
+
 }

+ 8 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/service/ITProjectPoolService.java

@@ -28,6 +28,14 @@ public interface ITProjectPoolService
      */
     public List<TProjectPool> selectTProjectPoolList(TProjectPool tProjectPool);
 
+    /**
+     * 查询项目阶段列表
+     *
+     * @param tProjectPool 项目池
+     * @return 项目池集合
+     */
+    public List<TProjectPool> selectTProjectPoolListStage(TProjectPool tProjectPool);
+
     /**
      * 新增项目池
      * 

+ 11 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/service/impl/TProjectPoolServiceImpl.java

@@ -46,6 +46,17 @@ public class TProjectPoolServiceImpl implements ITProjectPoolService
         return tProjectPoolMapper.selectTProjectPoolList(tProjectPool);
     }
 
+    /**
+     * 查询项目阶段列表
+     *
+     * @param tProjectPool 项目池
+     * @return 项目池
+     */
+    @Override
+    public List<TProjectPool> selectTProjectPoolListStage(TProjectPool tProjectPool) {
+        return tProjectPoolMapper.selectTProjectPoolListStage(tProjectPool);
+    }
+
     /**
      * 新增项目池
      * 

+ 32 - 1
ruoyi-system/src/main/resources/mapper/invest/TProjectPoolMapper.xml

@@ -118,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectTProjectPoolList" parameterType="TProjectPool" resultMap="TProjectPoolResult">
         <include refid="selectTProjectPoolVo"/>
         <where>
+            a.project_state != '1'
             <if test="projectName != null  and projectName != ''"> and a.project_name like concat('%', #{projectName}, '%')</if>
             <if test="projectGroup != null  and projectGroup != ''"> and a.project_group = #{projectGroup}</if>
             <if test="projectCode != null  and projectCode != ''"> and a.project_code = #{projectCode}</if>
@@ -143,7 +144,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="delFlag != null  and delFlag != ''"> and a.del_flag = #{delFlag}</if>
         </where>
     </select>
-    
+
+    <select id="selectTProjectPoolListStage" parameterType="TProjectPool" resultMap="TProjectPoolResult">
+        <include refid="selectTProjectPoolVo"/>
+        <where>
+            <if test="projectName != null  and projectName != ''"> and a.project_name like concat('%', #{projectName}, '%')</if>
+            <if test="projectGroup != null  and projectGroup != ''"> and a.project_group = #{projectGroup}</if>
+            <if test="projectCode != null  and projectCode != ''"> and a.project_code = #{projectCode}</if>
+            <if test="channel != null  and channel != ''"> and a.channel = #{channel}</if>
+            <if test="contactDate != null "> and a.contact_date = #{contactDate}</if>
+            <if test="projectDate != null "> and a.project_date = #{projectDate}</if>
+            <if test="decisionDate != null "> and a.decision_date = #{decisionDate}</if>
+            <if test="industry != null  and industry != ''"> and a.industry = #{industry}</if>
+            <if test="company != null  and company != ''"> and b.company_name like concat('%', #{company}, '%')</if>
+            <if test="projectContacts != null  and projectContacts != ''"> and c.name like concat('%', #{projectContacts}, '%')</if>
+            <if test="investHead != null  and investHead != ''"> and a.invest_head like concat('%', #{investHead}, '%')</if>
+            <if test="previousFinancing != null  and previousFinancing != ''"> and a.previous_financing = #{previousFinancing}</if>
+            <if test="financingStage != null  and financingStage != ''"> and a.financing_stage = #{financingStage}</if>
+            <if test="financingMoney != null  and financingMoney != ''"> and a.financing_money = #{financingMoney}</if>
+            <if test="financingDate != null "> and a.financing_date = #{financingDate}</if>
+            <if test="investValuation != null  and investValuation != ''"> and a.invest_valuation = #{investValuation}</if>
+            <if test="investMoney != null  and investMoney != ''"> and a.invest_money = #{investMoney}</if>
+            <if test="investType != null  and investType != ''"> and a.invest_type = #{investType}</if>
+            <if test="investPloy != null  and investPloy != ''"> and a.invest_ploy = #{investPloy}</if>
+            <if test="investWorth != null  and investWorth != ''"> and a.invest_worth = #{investWorth}</if>
+            <if test="projectStage != null  and projectStage != ''"> and a.project_stage = #{projectStage}</if>
+            <if test="projectState != null  and projectState != ''"> and a.project_state = #{projectState}</if>
+            <if test="delFlag != null  and delFlag != ''"> and a.del_flag = #{delFlag}</if>
+        </where>
+    </select>
+
+
     <select id="selectTProjectPoolById" parameterType="String" resultMap="TProjectPoolResult">
         <include refid="selectTProjectPoolVo"/>
         where a.id = #{id}