*
Showing
2 changed files
with
7 additions
and
10 deletions
| ... | @@ -113,36 +113,33 @@ class Contract extends BaseModel | ... | @@ -113,36 +113,33 @@ class Contract extends BaseModel |
| 113 | 113 | ||
| 114 | /** | 114 | /** |
| 115 | * @param $cooperation_type | 115 | * @param $cooperation_type |
| 116 | * @param $right | 116 | * @param $rightgetModel |
| 117 | * @return string | 117 | * @return string |
| 118 | */ | 118 | */ |
| 119 | public static function getModel($cooperation_type, $right) | 119 | public static function getModel($cooperation_type, $right) |
| 120 | { | 120 | { |
| 121 | |||
| 121 | switch ($cooperation_type) { | 122 | switch ($cooperation_type) { |
| 123 | case -1: | ||
| 124 | return '未填写'; | ||
| 125 | case 0: | ||
| 126 | return '无'; | ||
| 122 | case 1: | 127 | case 1: |
| 123 | return "一次性费用" . self::formatCost($right); | 128 | return "一次性费用" . self::formatCost($right); |
| 124 | break; | ||
| 125 | case 2: | 129 | case 2: |
| 126 | return "分成" . self::formatDivide($right); | 130 | return "分成" . self::formatDivide($right); |
| 127 | break; | ||
| 128 | case 3: | 131 | case 3: |
| 129 | return '分成' . self::formatDivide($right) .'+预付'. self::formatPrepaid($right); | 132 | return '分成' . self::formatDivide($right) .'+预付'. self::formatPrepaid($right); |
| 130 | break; | ||
| 131 | case 5: | 133 | case 5: |
| 132 | return '分成' . self::formatDivide($right) .'+一次性费用'. self::formatCost($right); | 134 | return '分成' . self::formatDivide($right) .'+一次性费用'. self::formatCost($right); |
| 133 | break; | ||
| 134 | case 6: | 135 | case 6: |
| 135 | return '抵扣成本后再分成' . self::formatDivide($right); | 136 | return '抵扣成本后再分成' . self::formatDivide($right); |
| 136 | break; | ||
| 137 | case 7: | 137 | case 7: |
| 138 | return '分成' . self::formatDivide($right) . '+预付' .self::formatPrepaid($right). '+一次性费用' . self::formatCost($right); | 138 | return '分成' . self::formatDivide($right) . '+预付' .self::formatPrepaid($right). '+一次性费用' . self::formatCost($right); |
| 139 | break; | ||
| 140 | case 8: | 139 | case 8: |
| 141 | return '抵扣成本后分成' .self::formatDivide($right). '+预付' . self::formatPrepaid($right); | 140 | return '抵扣成本后分成' .self::formatDivide($right). '+预付' . self::formatPrepaid($right); |
| 142 | break; | ||
| 143 | case 9: | 141 | case 9: |
| 144 | return '一次性费用' . self::formatCost($right) .'+抵扣成本后分成' . self::formatDivide($right); | 142 | return '一次性费用' . self::formatCost($right) .'+抵扣成本后分成' . self::formatDivide($right); |
| 145 | break; | ||
| 146 | } | 143 | } |
| 147 | } | 144 | } |
| 148 | 145 | ... | ... |
| ... | @@ -236,7 +236,7 @@ class MusicianSongService extends Service | ... | @@ -236,7 +236,7 @@ class MusicianSongService extends Service |
| 236 | //新数据 | 236 | //新数据 |
| 237 | $rights[] = [ | 237 | $rights[] = [ |
| 238 | 'role' => Contract::transformRole($stakeholder_contract['right_type']), | 238 | 'role' => Contract::transformRole($stakeholder_contract['right_type']), |
| 239 | 'right' => 'test', | 239 | 'right' => Contract::getModel($item['contract']['cooperation_type'], [$stakeholder_contract]), |
| 240 | ]; | 240 | ]; |
| 241 | } | 241 | } |
| 242 | } | 242 | } | ... | ... |
-
Please register or sign in to post a comment