Explorar el Código

尽调点击完成接口

zjc hace 1 año
padre
commit
dbb46d51bb

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

@@ -171,4 +171,17 @@ public class TProjectInvestigateController extends BaseController
         ajax.put("tProjectInvestigate", tProjectInvestigate);
         return ajax;
     }
+
+    /**
+     * 修改尽调完成
+     */
+    @ApiOperation("修改尽调完成")
+    @Log(title = "修改尽调完成", businessType = BusinessType.UPDATE)
+    @DeleteMapping("/editStatus")
+    public AjaxResult editStatus(String id)
+    {
+        return toAjax(tProjectInvestigateService.editStatus(id));
+    }
+
+
 }

+ 11 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/domain/TProjectInvestigate.java

@@ -51,6 +51,9 @@ public class TProjectInvestigate extends BaseEntity
     /** 删除状态 */
     private String delFlag;
 
+    /** 状态 */
+    private String status;
+
     /**
      * 附件信息
      */
@@ -146,6 +149,14 @@ public class TProjectInvestigate extends BaseEntity
         this.listFile = listFile;
     }
 
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 7 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/mapper/TProjectInvestigateMapper.java

@@ -72,4 +72,11 @@ public interface TProjectInvestigateMapper
      * @return
      */
     TProjectInvestigate listProjectPoolId(String projectPoolId);
+
+    /**
+     * 修改尽调完成
+     * @param id
+     * @return
+     */
+    int editStatus(String id);
 }

+ 7 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/service/ITProjectInvestigateService.java

@@ -72,4 +72,11 @@ public interface ITProjectInvestigateService
      * @return
      */
     TProjectInvestigate listProjectPoolId(String projectPoolId);
+
+    /**
+     * 修改尽调完成
+     * @param id
+     * @return
+     */
+    int editStatus(String id);
 }

+ 10 - 0
ruoyi-system/src/main/java/com/ruoyi/invest/service/impl/TProjectInvestigateServiceImpl.java

@@ -114,4 +114,14 @@ public class TProjectInvestigateServiceImpl implements ITProjectInvestigateServi
     public TProjectInvestigate listProjectPoolId(String projectPoolId) {
         return tProjectInvestigateMapper.listProjectPoolId(projectPoolId);
     }
+
+    /**
+     * 修改尽调完成
+     * @param id
+     * @return
+     */
+    @Override
+    public int editStatus(String id) {
+        return tProjectInvestigateMapper.editStatus(id);
+    }
 }

+ 10 - 1
ruoyi-system/src/main/resources/mapper/invest/TProjectInvestigateMapper.xml

@@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="describe"    column="describe_"    />
         <result property="remark"    column="remark"    />
         <result property="delFlag"    column="del_flag"    />
+        <result property="status"    column="status"    />
         <result property="createBy"    column="create_by"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateBy"    column="update_by"    />
@@ -22,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectTProjectInvestigateVo">
-        select id, investigate_name, investigate_code, project_pool_id, investigate_person, investigate_person_id, investigate_cost, describe_, remark, del_flag, create_by, create_time, update_by, update_time from t_project_investigate
+        select id, investigate_name, investigate_code, project_pool_id, investigate_person, investigate_person_id, investigate_cost, describe_, remark, status, del_flag, create_by, create_time, update_by, update_time from t_project_investigate
     </sql>
 
     <select id="selectTProjectInvestigateList" parameterType="TProjectInvestigate" resultMap="TProjectInvestigateResult">
@@ -55,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="investigateCost != null">investigate_cost,</if>
             <if test="describe != null">describe_,</if>
             <if test="remark != null">remark,</if>
+            <if test="status != null">status,</if>
             <if test="delFlag != null">del_flag,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createTime != null">create_time,</if>
@@ -71,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="investigateCost != null">#{investigateCost},</if>
             <if test="describe != null">#{describe},</if>
             <if test="remark != null">#{remark},</if>
+            <if test="status != null">#{status},</if>
             <if test="delFlag != null">#{delFlag},</if>
             <if test="createBy != null">#{createBy},</if>
             <if test="createTime != null">#{createTime},</if>
@@ -90,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="investigateCost != null">investigate_cost = #{investigateCost},</if>
             <if test="describe != null">describe_ = #{describe},</if>
             <if test="remark != null">remark = #{remark},</if>
+            <if test="status != null">status = #{status},</if>
             <if test="delFlag != null">del_flag = #{delFlag},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createTime != null">create_time = #{createTime},</if>
@@ -124,5 +128,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         where project_pool_id = #{projectPoolId} and del_flag = 0
     </select>
 
+    <update id="editStatus" parameterType="String">
+        update t_project_investigate
+        set editStatus = 1
+        where id = #{id}
+    </update>
 
 </mapper>

+ 2 - 2
ruoyi-system/src/main/resources/mapper/invest/TProjectMeetingMapper.xml

@@ -52,8 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="meetingTheme != null  and meetingTheme != ''"> and a.meeting_theme like concat('%', #{meetingTheme}, '%')</if>
             <if test="meetingCode != null  and meetingCode != ''"> and a.meeting_code like concat('%', #{meetingCode}, '%')</if>
             <if test="meetingType != null  and meetingType != ''"> and a.meeting_type = #{meetingType}</if>
-            <if test="startTime != null "> and a.start_time &gt;= #{startTime}</if>
-            <if test="endTime != null "> and a.end_time &lt;= #{endTime}</if>
+            <if test="startTime != null "> and DATE_FORMAT(a.start_time, '%Y-%m-%d') &gt;= #{startTime}</if>
+            <if test="endTime != null "> and DATE_FORMAT(a.end_time, '%Y-%m-%d') &lt;= #{endTime}</if>
         </where>
     </select>
     

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

@@ -94,7 +94,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectTProjectPoolList" parameterType="TProjectPool" resultMap="TProjectPoolResult">
         <include refid="selectTProjectPoolVo"/>
         <where>
-            a.del_flag = 0
             <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>