中扬CRM客户关系管理系统
#
Junjie
2023-08-31 bfb6b1df256df56c7a387682ffdf8feb3897bbb1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
package com.zy.crm.manager.entity;
 
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
 
import com.core.common.SpringUtils;
import com.zy.crm.manager.service.ReimburseCostTypesService;
import org.springframework.format.annotation.DateTimeFormat;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
 
@Data
@TableName("man_reimburse_online_detl")
public class ReimburseOnlineDetl implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value= "事由")
    private String occupation;
 
    /**
     * 费用类型
     */
    @ApiModelProperty(value= "费用类型")
    @TableField("expense_type")
    private Integer expenseType;
 
    /**
     * 列支人员
     */
    @ApiModelProperty(value= "列支人员")
    @TableField("user_id")
    private Integer userId;
 
    /**
     * 列支部门
     */
    @ApiModelProperty(value= "列支部门")
    @TableField("dept_id")
    private Integer deptId;
 
    @ApiModelProperty(value= "")
    @TableField("host_id")
    private Integer hostId;
 
    /**
     * 项目ID,关联man_order表主键
     */
    @ApiModelProperty(value= "项目ID,关联man_order表主键")
    @TableField("order_id")
    private Long orderId;
 
    /**
     * 税率
     */
    @ApiModelProperty(value= "税率")
    @TableField("tax_rate")
    private Long taxRate;
 
    /**
     * 未税本币金额
     */
    @ApiModelProperty(value= "未税本币金额")
    @TableField("untaxed_amount_in_local_currency")
    private Long untaxedAmountInLocalCurrency;
 
    /**
     * 未税金额
     */
    @ApiModelProperty(value= "未税金额")
    @TableField("untaxed_amount")
    private Long untaxedAmount;
 
    /**
     * 税额
     */
    @ApiModelProperty(value= "税额")
    @TableField("tax_amount")
    private Long taxAmount;
 
    /**
     * 发票金额
     */
    @ApiModelProperty(value= "发票金额")
    @TableField("invoice_value")
    private Long invoiceValue;
 
    /**
     * 发票本币金额
     */
    @ApiModelProperty(value= "发票本币金额")
    @TableField("invoice_amount_in_local_currency")
    private Long invoiceAmountInLocalCurrency;
 
    /**
     * 报销比例
     */
    @ApiModelProperty(value= "报销比例")
    @TableField("reimbursement_ratio")
    private Long reimbursementRatio;
 
    /**
     * 报销金额
     */
    @ApiModelProperty(value= "报销金额")
    @TableField("reimbursement_amount")
    private Long reimbursementAmount;
 
    /**
     * 报销本币金额
     */
    @ApiModelProperty(value= "报销本币金额")
    @TableField("reimbursement_amount_in_local_currency")
    private Long reimbursementAmountInLocalCurrency;
 
    /**
     * 出纳确认金额
     */
    @ApiModelProperty(value= "出纳确认金额")
    @TableField("cashier_confirmation_amount")
    private Long cashierConfirmationAmount;
 
    /**
     * 出纳币种
     */
    @ApiModelProperty(value= "出纳币种")
    @TableField("cashier_currency")
    private Integer cashierCurrency;
 
    /**
     * 出发日期
     */
    @ApiModelProperty(value= "出发日期")
    @TableField("departure_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date departureTime;
 
    /**
     * 更新日期
     */
    @ApiModelProperty(value= "更新日期")
    @TableField("update_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
 
    /**
     * 更新人员ID
     */
    @ApiModelProperty(value= "更新人员ID")
    @TableField("update_user_id")
    private Integer updateUserId;
 
    /**
     * 更新人员名字
     */
    @ApiModelProperty(value= "更新人员名字")
    @TableField("update_user_name")
    private String updateUserName;
 
    /**
     * 创建日期
     */
    @ApiModelProperty(value= "创建日期")
    @TableField("creation_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date creationTime;
 
    /**
     * 创建人员id
     */
    @ApiModelProperty(value= "创建人员id")
    @TableField("creation_user_id")
    private Integer creationUserId;
 
    /**
     * 创建人员名字
     */
    @ApiModelProperty(value= "创建人员名字")
    @TableField("creation_user_name")
    private String creationUserName;
 
    /**
     * 报销主表ID
     */
    @ApiModelProperty(value= "报销主表ID")
    @TableField("reimburse_id")
    private Integer reimburseId;
 
    public ReimburseOnlineDetl() {}
 
    public ReimburseOnlineDetl(String occupation,Integer expenseType,Integer userId,Integer deptId,Integer hostId,Long orderId,Long taxRate,Long untaxedAmountInLocalCurrency,Long untaxedAmount,Long taxAmount,Long invoiceValue,Long invoiceAmountInLocalCurrency,Long reimbursementRatio,Long reimbursementAmount,Long reimbursementAmountInLocalCurrency,Long cashierConfirmationAmount,Integer cashierCurrency,Date departureTime,Date updateTime,Integer updateUserId,String updateUserName,Date creationTime,Integer creationUserId,String creationUserName,Integer reimburseId) {
        this.occupation = occupation;
        this.expenseType = expenseType;
        this.userId = userId;
        this.deptId = deptId;
        this.hostId = hostId;
        this.orderId = orderId;
        this.taxRate = taxRate;
        this.untaxedAmountInLocalCurrency = untaxedAmountInLocalCurrency;
        this.untaxedAmount = untaxedAmount;
        this.taxAmount = taxAmount;
        this.invoiceValue = invoiceValue;
        this.invoiceAmountInLocalCurrency = invoiceAmountInLocalCurrency;
        this.reimbursementRatio = reimbursementRatio;
        this.reimbursementAmount = reimbursementAmount;
        this.reimbursementAmountInLocalCurrency = reimbursementAmountInLocalCurrency;
        this.cashierConfirmationAmount = cashierConfirmationAmount;
        this.cashierCurrency = cashierCurrency;
        this.departureTime = departureTime;
        this.updateTime = updateTime;
        this.updateUserId = updateUserId;
        this.updateUserName = updateUserName;
        this.creationTime = creationTime;
        this.creationUserId = creationUserId;
        this.creationUserName = creationUserName;
        this.reimburseId = reimburseId;
    }
    public ReimburseOnlineDetl(Integer reminburseCostTypeId) {
        this.occupation = "";
        this.expenseType = reminburseCostTypeId;
        this.taxRate = (long)0.0;
        this.untaxedAmountInLocalCurrency = (long)0.0;
        this.untaxedAmount = (long)0.0;
        this.taxAmount = (long)0.0;
        this.invoiceValue = (long)0.0;
        this.invoiceAmountInLocalCurrency = (long)0.0;
        this.reimbursementRatio = (long)0.0;
        this.reimbursementAmount = (long)0.0;
        this.reimbursementAmountInLocalCurrency = (long)0.0;
        this.cashierConfirmationAmount = (long)0.0;
    }
 
 
    public String getDepartureTime$(){
        if (Cools.isEmpty(this.departureTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.departureTime);
    }
 
    public String getExpenseType$(){
        ReimburseCostTypesService reimburseCostTypesService = SpringUtils.getBean(ReimburseCostTypesService.class);
        ReimburseCostTypes reimburseCostTypes = reimburseCostTypesService.selectById(this.expenseType);
        if (!Cools.isEmpty(reimburseCostTypes)){
            return String.valueOf(reimburseCostTypes.getTypeName());
        }
        return null;
    }
 
    public String getUpdateTime$(){
        if (Cools.isEmpty(this.updateTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
    }
 
    public String getCreationTime$(){
        if (Cools.isEmpty(this.creationTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.creationTime);
    }
 
}