Files
OMS/app/material/lib/serial.php
2025-12-28 23:13:25 +08:00

25 lines
619 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 基础物料唯一码Lib类
*
* @author kamisama.xia@gmail.com
* @version 0.1
*/
class material_serial{
/**
*
* 检查基础物料是否是唯一码类型
* @param Int $id 基础物料ID
*/
public function checkSerialById($id){
$basicMConfObj = app::get('material')->model('basic_material');
$basicInfo = $basicMConfObj->dump(array('bm_id'=>$id, 'serial_number'=>'true'), 'bm_id');
return $basicInfo ? true : false;
}
}