|
@@ -53,8 +53,8 @@ public class NationalMatchService {
|
|
|
String upldFlagColumn = param.getYbType() == 1 ? "uploaded_flag" : "injury_upload_flag";
|
|
|
String statement = "";
|
|
|
if (param.getYbType() == 2) {
|
|
|
- statement = "startTime=(select d.aae030 from t_industrial_injury_catalogue d where d.aaz231=a.aaz231 )," +
|
|
|
- "endTime=(select d.aae031 from t_industrial_injury_catalogue d where d.aaz231=a.aaz231), ";
|
|
|
+ statement = "startTime=(select max(d.aae030) from t_industrial_injury_catalogue d where d.aaz231=a.aaz231 )," +
|
|
|
+ "endTime=(select max(d.aae031) from t_industrial_injury_catalogue d where d.aaz231=a.aaz231), ";
|
|
|
}
|
|
|
String uploadStatement = "";
|
|
|
if (null != param.getUploadFlag()) {
|