根据体检推送,上下架

main
yanzai 5 months ago
parent e46eb4381b
commit 862e4a2080

@ -186,7 +186,13 @@ class ComboController extends Controller
select combo_id as c_id,count(*) as count from combo_items where status in(1) and keshi_name<>'材料费' group by combo_id
) as b on a.combo_id=b.c_id where a.status=1 " . $sql ." ", $canshu);
$combos_list=[];
$nowdatetime=date('Y-m-d H:i:s');
foreach ($combos as $key => $combo) {
if(isset($combo->youxiao_end_time) and isset($combo->youxiao_start_time)){
if($nowdatetime>$combo->youxiao_end_time or $nowdatetime<$combo->youxiao_start_time){
continue;
}
}
if(json_decode($combo->beizhu, JSON_UNESCAPED_UNICODE)){
$beizhu=json_decode($combo->beizhu, JSON_UNESCAPED_UNICODE);
if(isset($beizhu['可用渠道']) and !empty($beizhu['可用渠道'])){

@ -105,6 +105,8 @@ class ComboItemGroupService
'duo_xuan_yi'=>json_encode($combo['包含多选一组'], JSON_UNESCAPED_UNICODE),
'keyue_start_time' => $combo['可约开始时间'],
'keyue_end_time' => $combo['可约截止时间'],
'youxiao_start_time' => $combo['有效开始日期'],
'youxiao_end_time' => $combo['有效截止日期'],
'status' => 1,
'updated_at' => date('Y-m-d H:i:s'),
];

Loading…
Cancel
Save