@@ -146,8 +146,8 @@
</select>
<select id="selectByOrderNo" resultType="com.goafanti.order.bo.TDunLogListBo">
select a.id, a.dun_id as dunId, b.name as dumBy, a.dum_time as dumTime, a.remarks,a.type,
- a.attachment_url attachmentUrl, c.order_no orderNo,c.buyer_name userName,a.create_time
+ a.attachment_url attachmentUrl, c.order_no orderNo,c.buyer_name userName,a.create_time createTime
from t_dun_log a left join admin b on a.dum_by=b.id left join t_order_mid c on a.order_no =c.order_no
- where c.order_no = #{orderNo} order by a.create_time
+ where c.order_no = #{orderNo} order by a.create_time desc
</mapper>
@@ -5,6 +5,8 @@ import org.apache.commons.lang3.time.DateFormatUtils;
import com.goafanti.common.constant.AFTConstants;
import com.goafanti.common.model.TDunLog;
+import java.util.Date;
+
public class TDunLogListBo extends TDunLog {
private String userName;
@@ -24,4 +26,11 @@ public class TDunLogListBo extends TDunLog {
return DateFormatUtils.format(super.getDumTime(), AFTConstants.YYYYMMDD);
}
+ public String getCreateDate() {
+ if (super.getCreateTime() == null) {
+ return null;
+ } else {
+ return DateFormatUtils.format(super.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
+ }