标题改为最大

master
leijx 5 years ago
parent ba47b1a818
commit d125ee7c9f

@ -42,7 +42,7 @@ public class TestController {
Object[] objects = new Object[0];
// invoke("方法名",参数1,参数2,参数3....);
try {
objects = client.invoke("CheckData", "00e1d935-e89f-410b-9c29-bf2eae654f19");
objects = client.invoke("CheckData", "0ca8921d-870f-45a8-bff7-e7d5e400589e");
} catch (Exception e) {
e.printStackTrace();
}

@ -103,7 +103,7 @@ public interface ArchiveDetailRepository extends JpaRepository<ArchiveDetail, St
" and m.ID = ?2) order by e.report_type,e.name,e.author_report_time ",nativeQuery = true)
List<Map<Object, Object>> getAllInspectionApply(List<String> type, String masterId);
@Query("select o.title from ArchiveDetail o where o.masterID = ?1 and o.assortID = ?2 and o.flag = ?3 ")
@Query("select max(o.title) from ArchiveDetail o where o.masterID = ?1 and o.assortID = ?2 and o.flag = ?3 ")
public String getResultByMasterIDAndAssortIDAndFlag(String masterId,String assortId,String flag);
@Query("select count(o) from ArchiveDetail o where o.masterID = ?1 and o.assortID = ?2 and o.flag = ?3 ")

Loading…
Cancel
Save