切换分支备份

Lhxyy
qiuyt 4 months ago
parent 0db6897c08
commit 60ccaa1334

@ -27,11 +27,10 @@ public class VA010Service extends ServiceImpl<VA010Mapper, VA010> {
IPage<VA010> iPage = va010Mapper.getList(page,udiwmsBasicSkPrescribeRequest);
List<VA010> list = iPage.getRecords();
List<VA010> listNew = new ArrayList<>();
list.sort( Comparator.comparing(VA010::getPrescribedate));
if(list!=null && list.size() >0){
String lastSql = "";
if(defXmlSqlType.equals("Mysql")){
lastSql = "AND limit = 1";
lastSql = " limit 1";
}else if(defXmlSqlType.equals("Oracle")){
lastSql = "AND rownum = 1";
@ -43,6 +42,8 @@ public class VA010Service extends ServiceImpl<VA010Mapper, VA010> {
listNew.add(va010New);
}
}
listNew.sort( Comparator.comparing(VA010::getPrescribedate));
iPage.setRecords(listNew);
return iPage;

@ -42,8 +42,8 @@
<choose>
<when test="req.databaseProductName == 'MySQL'">
<![CDATA[
STR_TO_DATE(PRESCRIBEDATE, '%Y/%c/%e %H:%i:%s') >= #{req.startTime}
AND STR_TO_DATE(PRESCRIBEDATE, '%Y/%c/%e %H:%i:%s') < #{req.endTime}
STR_TO_DATE(PRESCRIBEDATE, '%e/%c/%Y %H:%i:%s') >= #{req.startTime}
AND STR_TO_DATE(PRESCRIBEDATE, '%e/%c/%Y %H:%i:%s') < #{req.endTime}
]]>
</when>
<when test="req.databaseProductName == 'Oracle'">

Loading…
Cancel
Save