Pārlūkot izejas kodu

王耀栋--工作台模块代码,获取列表添加创建人条件

wangyaodong 3 gadi atpakaļ
vecāks
revīzija
f5c7aa1587

+ 3 - 0
api-common/src/main/java/api/common/pojo/param/project/SimulationManualProjectParam.java

@@ -115,5 +115,8 @@ public class SimulationManualProjectParam extends PageVO {
     //是否打包报告pdf
     private Boolean isPagePdf;
 
+    //创建人
+    private String createUserId;
+
 
 }

+ 3 - 0
simulation-resource-server/src/main/java/com/css/simulation/resource/project/impl/SimulationProjectServiceImpl.java

@@ -148,6 +148,9 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
     @Override
     public ResponseBodyVO selectProject(SimulationManualProjectParam param) {
 
+        //当前用户id
+        param.setCreateUserId(AuthUtil.getCurrentUserId());
+
         if(!isEmpty(param.getCreateStartDate())){
             String createStartDate = param.getCreateStartDate();
             Date startDate = getDate(createStartDate + " 00:00:00",1);

+ 3 - 0
simulation-resource-server/src/main/resources/mapper/project/SimulationProjectMapper.xml

@@ -161,6 +161,9 @@
             <if test="isDeleted != null and isDeleted != ''">
                 and is_deleted = #{isDeleted,jdbcType=VARCHAR}
             </if>
+            <if test="createUserId != null and createUserId != ''">
+                and create_user_id = #{createUserId,jdbcType=VARCHAR}
+            </if>
         </where>
         order by project_date desc, project_num desc, modify_time desc
     </select>