|
@@ -121,4 +121,25 @@ public interface ZhcxProjectManageDao extends BaseMapper<ZhcxProjectManageDo> {
|
|
|
" GROUP BY MACHINENO" +
|
|
|
"</script>")
|
|
|
List<String> searchData(Map<String, Object> map);
|
|
|
+ @Select("<script>SELECT x.*, di.SORT AS DEPTSORT,di2.SORT AS FIRSTDEPTSORT" +
|
|
|
+ " FROM INCONTROL.ZHCX_PROJECT_RECTIFY_MACHINE x " +
|
|
|
+ "LEFT JOIN SYS_DICT di ON x.DEPTID = di.ID AND di.DICTTYPE = 'rectification_organization' " +
|
|
|
+ "LEFT JOIN SYS_DICT di2 ON x.FIRSTDEPTID = di2.ID AND di.DICTTYPE = 'rectification_organization' " +
|
|
|
+ "<where> " +
|
|
|
+ "<if test='projectId !=null'>" +
|
|
|
+ "AND x.PRJID = #{projectId}" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test='batchId !=null'>" +
|
|
|
+ "AND x.BATCHID=#{batchId}" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test='machineno !=null'>" +
|
|
|
+ "AND x.REALMACHINENO=#{machineno}" +
|
|
|
+ "</if>" +
|
|
|
+ " and x.STATUS is not null " +
|
|
|
+ "<if test='ifoutsidebase !=null'>" +
|
|
|
+ "AND x.DEPTID is not null and x.IFOUTSIDEBASE in ('inside', 'outside')" +
|
|
|
+ "</if>" +
|
|
|
+ "</where>" +
|
|
|
+ "</script>")
|
|
|
+ List<ZhcxProjectRectifyMachineVo> getListApiData(Map<String, Object> map);
|
|
|
}
|