正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
@@ -111,6 +111,7 @@ class ProductController extends RestBaseController | @@ -111,6 +111,7 @@ class ProductController extends RestBaseController | ||
111 | * @return policy:保单信息 1有 0无 | 111 | * @return policy:保单信息 1有 0无 |
112 | * @return house:房产信息 1全款房 2分期房 0无 | 112 | * @return house:房产信息 1全款房 2分期房 0无 |
113 | * @return car:车辆信息 1全款车 0无 3分期车 | 113 | * @return car:车辆信息 1全款车 0无 3分期车 |
114 | + * @return remark:备注 | ||
114 | * @return is_apply:是否申请该产品贷款(1已申请0未申请) | 115 | * @return is_apply:是否申请该产品贷款(1已申请0未申请) |
115 | */ | 116 | */ |
116 | public function getDetails() { | 117 | public function getDetails() { |
@@ -131,7 +132,7 @@ class ProductController extends RestBaseController | @@ -131,7 +132,7 @@ class ProductController extends RestBaseController | ||
131 | ->join('user u','p.user_id=u.id','left') | 132 | ->join('user u','p.user_id=u.id','left') |
132 | ->join('card c','p.user_id=c.user_id','left') | 133 | ->join('card c','p.user_id=c.user_id','left') |
133 | ->where(['p.id' => $data['id']]) | 134 | ->where(['p.id' => $data['id']]) |
134 | - ->field('p.id,p.name,p.logo,p.upper_limit,p.lower_limit,p.rate,p.loan_time,p.loan_period,p.loan_flow,p.fee_explain,p.refund_explain,c.company,p.job,p.policy,p.house,p.car') | 135 | + ->field('p.id,p.name,p.logo,p.upper_limit,p.lower_limit,p.rate,p.loan_time,p.loan_period,p.loan_flow,p.fee_explain,p.refund_explain,c.company,p.job,p.policy,p.house,p.car,p.remark') |
135 | ->find(); | 136 | ->find(); |
136 | if ($result === false) { | 137 | if ($result === false) { |
137 | $this->error(['code'=>'40000','msg'=>'获取失败']); | 138 | $this->error(['code'=>'40000','msg'=>'获取失败']); |
@@ -171,6 +172,7 @@ class ProductController extends RestBaseController | @@ -171,6 +172,7 @@ class ProductController extends RestBaseController | ||
171 | * @param name:loan_flow type:int require:1 other: desc:贷款流程 | 172 | * @param name:loan_flow type:int require:1 other: desc:贷款流程 |
172 | * @param name:fee_explain type:int require:1 other: desc:费用说明 | 173 | * @param name:fee_explain type:int require:1 other: desc:费用说明 |
173 | * @param name:refund_explain type:int require:1 other: desc:还款说明 | 174 | * @param name:refund_explain type:int require:1 other: desc:还款说明 |
175 | + * @param name:remark type:int require:0 other: desc:备注 | ||
174 | * | 176 | * |
175 | */ | 177 | */ |
176 | public function addProduct() { | 178 | public function addProduct() { |
@@ -232,6 +234,7 @@ class ProductController extends RestBaseController | @@ -232,6 +234,7 @@ class ProductController extends RestBaseController | ||
232 | 'fee_explain' => $data['fee_explain'], | 234 | 'fee_explain' => $data['fee_explain'], |
233 | 'refund_explain' => $data['refund_explain'], | 235 | 'refund_explain' => $data['refund_explain'], |
234 | 'user_id' => $this->userId, | 236 | 'user_id' => $this->userId, |
237 | + 'remark' => $data['remark'] ? : '' | ||
235 | ]; | 238 | ]; |
236 | $result = Db::name('product')->insert($arr); | 239 | $result = Db::name('product')->insert($arr); |
237 | if ($result === false) { | 240 | if ($result === false) { |
@@ -265,6 +268,7 @@ class ProductController extends RestBaseController | @@ -265,6 +268,7 @@ class ProductController extends RestBaseController | ||
265 | * @param name:loan_flow type:int require:1 other: desc:贷款流程 | 268 | * @param name:loan_flow type:int require:1 other: desc:贷款流程 |
266 | * @param name:fee_explain type:int require:1 other: desc:费用说明 | 269 | * @param name:fee_explain type:int require:1 other: desc:费用说明 |
267 | * @param name:refund_explain type:int require:1 other: desc:还款说明 | 270 | * @param name:refund_explain type:int require:1 other: desc:还款说明 |
271 | + * @param name:remark type:int require:0 other: desc:备注 | ||
268 | * | 272 | * |
269 | */ | 273 | */ |
270 | public function editProduct() { | 274 | public function editProduct() { |
@@ -329,6 +333,7 @@ class ProductController extends RestBaseController | @@ -329,6 +333,7 @@ class ProductController extends RestBaseController | ||
329 | 'fee_explain' => $data['fee_explain'], | 333 | 'fee_explain' => $data['fee_explain'], |
330 | 'refund_explain' => $data['refund_explain'], | 334 | 'refund_explain' => $data['refund_explain'], |
331 | 'user_id' => $this->userId, | 335 | 'user_id' => $this->userId, |
336 | + 'remark' => $data['remark'] ? : '' | ||
332 | ]; | 337 | ]; |
333 | $result = Db::name('product')->update($arr); | 338 | $result = Db::name('product')->update($arr); |
334 | if ($result === false) { | 339 | if ($result === false) { |
-
请 注册 或 登录 后发表评论