修改表名
This commit is contained in:
parent
46c9611d48
commit
b7b2353591
@ -11,7 +11,7 @@ use think\facade\View;
|
|||||||
* 民生公益
|
* 民生公益
|
||||||
* -- 公益项目
|
* -- 公益项目
|
||||||
*
|
*
|
||||||
|
|
||||||
CREATE TABLE `fa_article_public_benefit` (
|
CREATE TABLE `fa_article_public_benefit` (
|
||||||
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
`id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||||
`article_id` int unsigned NOT NULL COMMENT '文章id',
|
`article_id` int unsigned NOT NULL COMMENT '文章id',
|
||||||
@ -178,7 +178,7 @@ class PublicBenefitEnroll extends ArticleCommon{
|
|||||||
$pid = Db::table(self::ARTICLE_PUBLIC_BENEFIT)->where('article_id', $id)->value('id');
|
$pid = Db::table(self::ARTICLE_PUBLIC_BENEFIT)->where('article_id', $id)->value('id');
|
||||||
|
|
||||||
if (!empty($pid)) {
|
if (!empty($pid)) {
|
||||||
$res2 = Db::table(self::ARTICLE_PUBLIC_BENEFIT)->where('article_id', $pid)->delete();
|
$pid = Db::table(self::ARTICLE_PUBLIC_BENEFIT)->where('article_id', $pid)->delete();
|
||||||
}else{
|
}else{
|
||||||
$pid = true;
|
$pid = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user