|  |  | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  | import java.util.stream.Collectors; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  | 
 |  |  |         return success(serviceTaskService.getScriptInfoByCondition(tid, pid, true, serviceTaskScriptQues.getPatfrom())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 通过任务ID和患者ID获取单个人的题目信息 | 
 |  |  |      * | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("通过任务ID和诊疗记录号获取单个人的题目信息") | 
 |  |  |     @PostMapping("/getScriptByCondition") | 
 |  |  |     public AjaxResult getScriptByCondition(@RequestBody ServiceTaskScriptQues serviceTaskScriptQues) { | 
 |  |  |         RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); | 
 |  |  |         Long taskId = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam1(), pri_key)); | 
 |  |  |         String zyserialnum = null; | 
 |  |  |         String mzserialnum = null; | 
 |  |  |         String tsserialnum = null; | 
 |  |  |         if (StringUtils.isNotEmpty(serviceTaskScriptQues.getParam2())) | 
 |  |  |             zyserialnum = rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam2(), pri_key); | 
 |  |  |         if (StringUtils.isNotEmpty(serviceTaskScriptQues.getParam3())) | 
 |  |  |             mzserialnum = rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam3(), pri_key); | 
 |  |  |         if (StringUtils.isNotEmpty(serviceTaskScriptQues.getParam4())) | 
 |  |  |             tsserialnum = rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam4(), pri_key); | 
 |  |  |         Map<String, Object> scriptByCondition = serviceTaskService.getScriptByCondition(taskId, zyserialnum, mzserialnum, tsserialnum); | 
 |  |  |         scriptByCondition.put("zy", serviceTaskScriptQues.getParam2()); | 
 |  |  |         scriptByCondition.put("mz", serviceTaskScriptQues.getParam3()); | 
 |  |  |         scriptByCondition.put("tid", serviceTaskScriptQues.getParam1()); | 
 |  |  |         return success(scriptByCondition); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |