|
@ -665,9 +665,16 @@ public class RehabilitationPlanService extends BaseJpaService<RehabilitationPlan
|
|
|
}
|
|
|
|
|
|
public List<Map<String, Object>> findRehabilitationServiceItem(String itemName) {
|
|
|
String sql = " SELECT * FROM base.wlyy_rehabilitation_service_item WHERE 1=1 ";
|
|
|
String sql = "SELECT\n" +
|
|
|
" a.* \n" +
|
|
|
"FROM\n" +
|
|
|
" wlyy_rehabilitation_service_item a\n" +
|
|
|
" INNER JOIN base_service_package_item b ON a.id = b.dict_id \n" +
|
|
|
"WHERE\n" +
|
|
|
" 1 = 1 \n" +
|
|
|
" AND b.del = '1' ";
|
|
|
if (StringUtils.isNotBlank(itemName)) {
|
|
|
sql += " and `name` LIKE '%" + itemName + "%'";
|
|
|
sql += " and a.`name` LIKE '%" + itemName + "%'";
|
|
|
}
|
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
return list;
|