1098226878 vor 4 Jahren
Ursprung
Commit
c120b0c488

+ 12 - 0
java110-db/src/main/resources/mapper/report/ReportInfoAnswerValueServiceDaoImplMapper.xml

@@ -33,6 +33,18 @@ value_id,user_an_id,title_id,an_value_id,value_content,community_id,setting_id
 <if test="valueId !=null and valueId != ''">
    and av.value_id= #{valueId}
 </if> 
+<if test="userName !=null and userName != ''">
+   and ra.person_name= #{userName}
+</if>
+<if test="repName !=null and repName != ''">
+   and st.name= #{repName}
+</if>
+<if test="repTitle !=null and repTitle != ''">
+   and tt.title like concat('%',#{repTitle},'%')
+</if>
+<if test="valueContent !=null and valueContent != ''">
+   and av.value_content like concat('%',#{valueContent},'%')
+</if>
 <if test="createTime !=null and createTime != ''">
    and av.create_time= #{createTime}
 </if> 

+ 8 - 2
service-report/src/main/java/com/java110/report/api/ReportInfoAnswerValueApi.java

@@ -101,14 +101,20 @@ public class ReportInfoAnswerValueApi {
      */
     @RequestMapping(value = "/queryReportInfoAnswerValue", method = RequestMethod.GET)
     public ResponseEntity<String> queryReportInfoAnswerValue(@RequestParam(value = "communityId") String communityId,
-                                                             @RequestParam(value = "titleId") String titleId,
+                                                             @RequestParam(value = "userName",required = false) String userName,
+                                                             @RequestParam(value = "repName",required = false) String repName,
+                                                             @RequestParam(value = "repTitle",required = false) String repTitle,
+                                                             @RequestParam(value = "valueContent",required = false) String valueContent,
                                                       @RequestParam(value = "page") int page,
                                                       @RequestParam(value = "row") int row) {
         ReportInfoAnswerValueDto reportInfoAnswerValueDto = new ReportInfoAnswerValueDto();
         reportInfoAnswerValueDto.setPage(page);
         reportInfoAnswerValueDto.setRow(row);
         reportInfoAnswerValueDto.setCommunityId(communityId);
-        reportInfoAnswerValueDto.setTitleId(titleId);
+        reportInfoAnswerValueDto.setUserName(userName);
+        reportInfoAnswerValueDto.setRepName(repName);
+        reportInfoAnswerValueDto.setRepTitle(repTitle);
+        reportInfoAnswerValueDto.setValueContent(valueContent);
         return getReportInfoAnswerValueBMOImpl.get(reportInfoAnswerValueDto);
     }
 }