提交 15d0f32d authored 作者: chengye's avatar chengye

test

上级 b47c0d16
<?php
namespace app\em\validate;
use app\em\model\Useage;
use think\Validate;
class UseageGeneralInfoValidate extends Validate
......@@ -38,6 +39,9 @@ class UseageGeneralInfoValidate extends Validate
$curr = strtotime($value);
$last = strtotime($data['last_date']);
$lastUseage = Useage::order('useage desc')->find();
if($lastUseage->current_date >= $curr) return '本次抄表日期必须大于上次抄表日期';
return $curr > $last ? true : '本次抄表日期必须大于上次抄表日期';
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论