diff --git a/xm-core/src/main/java/com/xm/core/entity/XmTaskSbillDetail.java b/xm-core/src/main/java/com/xm/core/entity/XmTaskSbillDetail.java
new file mode 100644
index 00000000..91350065
--- /dev/null
+++ b/xm-core/src/main/java/com/xm/core/entity/XmTaskSbillDetail.java
@@ -0,0 +1,469 @@
+package com.xm.core.entity;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Date;
+import java.math.BigDecimal;
+
+/**
+ * 组织 com 顶级模块 xm 大模块 core 小模块
+ * 实体 XmTaskSbillDetail所有属性名:
+ * userid,username,ctime,taskId,bizDate,remark,id,sbillId,stime,sstatus,amt,samt,workload,projectId,sworkload,bizMonth,budgetAt,budgetWorkload,initWorkload,quoteAt,quoteWorkload,sschemel,uniPrice,qendTime,qstartTime,actEndTime,actStartTime,oshare,shareFee;
+ * 表 xm_task_sbill_detail 工时登记表的所有字段名:
+ * userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time,oshare,share_fee;
+ * 当前主键(包括多主键):
+ * id;
+ */
+@ApiModel(description="工时登记表")
+public class XmTaskSbillDetail implements java.io.Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ @ApiModelProperty(notes="主键,主键",allowEmptyValue=true,example="",allowableValues="")
+ String id;
+
+
+ @ApiModelProperty(notes="员工编号",allowEmptyValue=true,example="",allowableValues="")
+ String userid;
+
+ @ApiModelProperty(notes="姓名",allowEmptyValue=true,example="",allowableValues="")
+ String username;
+
+ @ApiModelProperty(notes="创建日期",allowEmptyValue=true,example="",allowableValues="")
+ Date ctime;
+
+ @ApiModelProperty(notes="业务对象主键任务编号",allowEmptyValue=true,example="",allowableValues="")
+ String taskId;
+
+ @ApiModelProperty(notes="业务日期yyyy-MM-dd",allowEmptyValue=true,example="",allowableValues="")
+ String bizDate;
+
+ @ApiModelProperty(notes="备注",allowEmptyValue=true,example="",allowableValues="")
+ String remark;
+
+ @ApiModelProperty(notes="结算单据编号-来自task_sbill.id",allowEmptyValue=true,example="",allowableValues="")
+ String sbillId;
+
+ @ApiModelProperty(notes="结算提交时间",allowEmptyValue=true,example="",allowableValues="")
+ Date stime;
+
+ @ApiModelProperty(notes="结算状态0-无需结算,1-待结算2-已提交3-已通过4-已结算",allowEmptyValue=true,example="",allowableValues="")
+ String sstatus;
+
+ @ApiModelProperty(notes="工时对应金额",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal amt;
+
+ @ApiModelProperty(notes="结算工时对应结算金额-根据结算方案计算结算金额",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal samt;
+
+ @ApiModelProperty(notes="报工工时",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal workload;
+
+ @ApiModelProperty(notes="归属项目",allowEmptyValue=true,example="",allowableValues="")
+ String projectId;
+
+ @ApiModelProperty(notes="结算工时,用于结算,默认=workload",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal sworkload;
+
+ @ApiModelProperty(notes="月份yyyy-MM型",allowEmptyValue=true,example="",allowableValues="")
+ String bizMonth;
+
+ @ApiModelProperty(notes="任务预算金额-来自task表",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal budgetAt;
+
+ @ApiModelProperty(notes="任务预算工时-来自task表",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal budgetWorkload;
+
+ @ApiModelProperty(notes="任务初始工时-来自task表",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal initWorkload;
+
+ @ApiModelProperty(notes="报价金额-来自task_execuser表",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal quoteAt;
+
+ @ApiModelProperty(notes="报价工时-来自task_execuser表",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal quoteWorkload;
+
+ @ApiModelProperty(notes="任务结算方案,来自task表、来自数字字典xmTaskSettleSchemel",allowEmptyValue=true,example="",allowableValues="")
+ String sschemel;
+
+ @ApiModelProperty(notes="工时单价,来自task表,根据task_out判断取内部还是外部单价",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal uniPrice;
+
+ @ApiModelProperty(notes="报价结束时间",allowEmptyValue=true,example="",allowableValues="")
+ Date qendTime;
+
+ @ApiModelProperty(notes="报价开始时间",allowEmptyValue=true,example="",allowableValues="")
+ Date qstartTime;
+
+ @ApiModelProperty(notes="实际完工时间-来自task表",allowEmptyValue=true,example="",allowableValues="")
+ Date actEndTime;
+
+ @ApiModelProperty(notes="实际开始时间-来自task表",allowEmptyValue=true,example="",allowableValues="")
+ Date actStartTime;
+
+ @ApiModelProperty(notes="是否开启分享赚",allowEmptyValue=true,example="",allowableValues="")
+ String oshare;
+
+ @ApiModelProperty(notes="分享赚佣金",allowEmptyValue=true,example="",allowableValues="")
+ BigDecimal shareFee;
+
+ /**主键**/
+ public XmTaskSbillDetail(String id) {
+ this.id = id;
+ }
+
+ /**工时登记表**/
+ public XmTaskSbillDetail() {
+ }
+
+ /**
+ * 员工编号
+ **/
+ public void setUserid(String userid) {
+ this.userid = userid;
+ }
+ /**
+ * 姓名
+ **/
+ public void setUsername(String username) {
+ this.username = username;
+ }
+ /**
+ * 创建日期
+ **/
+ public void setCtime(Date ctime) {
+ this.ctime = ctime;
+ }
+ /**
+ * 业务对象主键任务编号
+ **/
+ public void setTaskId(String taskId) {
+ this.taskId = taskId;
+ }
+ /**
+ * 业务日期yyyy-MM-dd
+ **/
+ public void setBizDate(String bizDate) {
+ this.bizDate = bizDate;
+ }
+ /**
+ * 备注
+ **/
+ public void setRemark(String remark) {
+ this.remark = remark;
+ }
+ /**
+ * 主键
+ **/
+ public void setId(String id) {
+ this.id = id;
+ }
+ /**
+ * 结算单据编号-来自task_sbill.id
+ **/
+ public void setSbillId(String sbillId) {
+ this.sbillId = sbillId;
+ }
+ /**
+ * 结算提交时间
+ **/
+ public void setStime(Date stime) {
+ this.stime = stime;
+ }
+ /**
+ * 结算状态0-无需结算,1-待结算2-已提交3-已通过4-已结算
+ **/
+ public void setSstatus(String sstatus) {
+ this.sstatus = sstatus;
+ }
+ /**
+ * 工时对应金额
+ **/
+ public void setAmt(BigDecimal amt) {
+ this.amt = amt;
+ }
+ /**
+ * 结算工时对应结算金额-根据结算方案计算结算金额
+ **/
+ public void setSamt(BigDecimal samt) {
+ this.samt = samt;
+ }
+ /**
+ * 报工工时
+ **/
+ public void setWorkload(BigDecimal workload) {
+ this.workload = workload;
+ }
+ /**
+ * 归属项目
+ **/
+ public void setProjectId(String projectId) {
+ this.projectId = projectId;
+ }
+ /**
+ * 结算工时,用于结算,默认=workload
+ **/
+ public void setSworkload(BigDecimal sworkload) {
+ this.sworkload = sworkload;
+ }
+ /**
+ * 月份yyyy-MM型
+ **/
+ public void setBizMonth(String bizMonth) {
+ this.bizMonth = bizMonth;
+ }
+ /**
+ * 任务预算金额-来自task表
+ **/
+ public void setBudgetAt(BigDecimal budgetAt) {
+ this.budgetAt = budgetAt;
+ }
+ /**
+ * 任务预算工时-来自task表
+ **/
+ public void setBudgetWorkload(BigDecimal budgetWorkload) {
+ this.budgetWorkload = budgetWorkload;
+ }
+ /**
+ * 任务初始工时-来自task表
+ **/
+ public void setInitWorkload(BigDecimal initWorkload) {
+ this.initWorkload = initWorkload;
+ }
+ /**
+ * 报价金额-来自task_execuser表
+ **/
+ public void setQuoteAt(BigDecimal quoteAt) {
+ this.quoteAt = quoteAt;
+ }
+ /**
+ * 报价工时-来自task_execuser表
+ **/
+ public void setQuoteWorkload(BigDecimal quoteWorkload) {
+ this.quoteWorkload = quoteWorkload;
+ }
+ /**
+ * 任务结算方案,来自task表、来自数字字典xmTaskSettleSchemel
+ **/
+ public void setSschemel(String sschemel) {
+ this.sschemel = sschemel;
+ }
+ /**
+ * 工时单价,来自task表,根据task_out判断取内部还是外部单价
+ **/
+ public void setUniPrice(BigDecimal uniPrice) {
+ this.uniPrice = uniPrice;
+ }
+ /**
+ * 报价结束时间
+ **/
+ public void setQendTime(Date qendTime) {
+ this.qendTime = qendTime;
+ }
+ /**
+ * 报价开始时间
+ **/
+ public void setQstartTime(Date qstartTime) {
+ this.qstartTime = qstartTime;
+ }
+ /**
+ * 实际完工时间-来自task表
+ **/
+ public void setActEndTime(Date actEndTime) {
+ this.actEndTime = actEndTime;
+ }
+ /**
+ * 实际开始时间-来自task表
+ **/
+ public void setActStartTime(Date actStartTime) {
+ this.actStartTime = actStartTime;
+ }
+ /**
+ * 是否开启分享赚
+ **/
+ public void setOshare(String oshare) {
+ this.oshare = oshare;
+ }
+ /**
+ * 分享赚佣金
+ **/
+ public void setShareFee(BigDecimal shareFee) {
+ this.shareFee = shareFee;
+ }
+
+ /**
+ * 员工编号
+ **/
+ public String getUserid() {
+ return this.userid;
+ }
+ /**
+ * 姓名
+ **/
+ public String getUsername() {
+ return this.username;
+ }
+ /**
+ * 创建日期
+ **/
+ public Date getCtime() {
+ return this.ctime;
+ }
+ /**
+ * 业务对象主键任务编号
+ **/
+ public String getTaskId() {
+ return this.taskId;
+ }
+ /**
+ * 业务日期yyyy-MM-dd
+ **/
+ public String getBizDate() {
+ return this.bizDate;
+ }
+ /**
+ * 备注
+ **/
+ public String getRemark() {
+ return this.remark;
+ }
+ /**
+ * 主键
+ **/
+ public String getId() {
+ return this.id;
+ }
+ /**
+ * 结算单据编号-来自task_sbill.id
+ **/
+ public String getSbillId() {
+ return this.sbillId;
+ }
+ /**
+ * 结算提交时间
+ **/
+ public Date getStime() {
+ return this.stime;
+ }
+ /**
+ * 结算状态0-无需结算,1-待结算2-已提交3-已通过4-已结算
+ **/
+ public String getSstatus() {
+ return this.sstatus;
+ }
+ /**
+ * 工时对应金额
+ **/
+ public BigDecimal getAmt() {
+ return this.amt;
+ }
+ /**
+ * 结算工时对应结算金额-根据结算方案计算结算金额
+ **/
+ public BigDecimal getSamt() {
+ return this.samt;
+ }
+ /**
+ * 报工工时
+ **/
+ public BigDecimal getWorkload() {
+ return this.workload;
+ }
+ /**
+ * 归属项目
+ **/
+ public String getProjectId() {
+ return this.projectId;
+ }
+ /**
+ * 结算工时,用于结算,默认=workload
+ **/
+ public BigDecimal getSworkload() {
+ return this.sworkload;
+ }
+ /**
+ * 月份yyyy-MM型
+ **/
+ public String getBizMonth() {
+ return this.bizMonth;
+ }
+ /**
+ * 任务预算金额-来自task表
+ **/
+ public BigDecimal getBudgetAt() {
+ return this.budgetAt;
+ }
+ /**
+ * 任务预算工时-来自task表
+ **/
+ public BigDecimal getBudgetWorkload() {
+ return this.budgetWorkload;
+ }
+ /**
+ * 任务初始工时-来自task表
+ **/
+ public BigDecimal getInitWorkload() {
+ return this.initWorkload;
+ }
+ /**
+ * 报价金额-来自task_execuser表
+ **/
+ public BigDecimal getQuoteAt() {
+ return this.quoteAt;
+ }
+ /**
+ * 报价工时-来自task_execuser表
+ **/
+ public BigDecimal getQuoteWorkload() {
+ return this.quoteWorkload;
+ }
+ /**
+ * 任务结算方案,来自task表、来自数字字典xmTaskSettleSchemel
+ **/
+ public String getSschemel() {
+ return this.sschemel;
+ }
+ /**
+ * 工时单价,来自task表,根据task_out判断取内部还是外部单价
+ **/
+ public BigDecimal getUniPrice() {
+ return this.uniPrice;
+ }
+ /**
+ * 报价结束时间
+ **/
+ public Date getQendTime() {
+ return this.qendTime;
+ }
+ /**
+ * 报价开始时间
+ **/
+ public Date getQstartTime() {
+ return this.qstartTime;
+ }
+ /**
+ * 实际完工时间-来自task表
+ **/
+ public Date getActEndTime() {
+ return this.actEndTime;
+ }
+ /**
+ * 实际开始时间-来自task表
+ **/
+ public Date getActStartTime() {
+ return this.actStartTime;
+ }
+ /**
+ * 是否开启分享赚
+ **/
+ public String getOshare() {
+ return this.oshare;
+ }
+ /**
+ * 分享赚佣金
+ **/
+ public BigDecimal getShareFee() {
+ return this.shareFee;
+ }
+
+}
\ No newline at end of file
diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskSbillDetailMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskSbillDetailMapper.xml
index e0f919ff..16f04c29 100644
--- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskSbillDetailMapper.xml
+++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTaskSbillDetailMapper.xml
@@ -76,7 +76,7 @@
insert into xm_task_sbill_detail(
) values (
- #{userid},#{username},#{ctime},#{taskId},#{bizDate},#{remark},#{id},#{sbillId},#{stime},#{sstatus},#{amt},#{samt},#{workload},#{projectId},#{sworkload},#{bizMonth},#{budgetAt},#{budgetWorkload},#{initWorkload},#{quoteAt},#{quoteWorkload},#{sschemel},#{uniPrice},#{qendTime},#{qstartTime},#{actEndTime},#{actStartTime}
+ #{userid},#{username},#{ctime},#{taskId},#{bizDate},#{remark},#{id},#{sbillId},#{stime},#{sstatus},#{amt},#{samt},#{workload},#{projectId},#{sworkload},#{bizMonth},#{budgetAt},#{budgetWorkload},#{initWorkload},#{quoteAt},#{quoteWorkload},#{sschemel},#{uniPrice},#{qendTime},#{qstartTime},#{actEndTime},#{actStartTime},#{oshare},#{shareFee}
)
@@ -151,7 +151,7 @@
- userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time
+ userid,username,ctime,task_id,biz_date,remark,id,sbill_id,stime,sstatus,amt,samt,workload,project_id,sworkload,biz_month,budget_at,budget_workload,init_workload,quote_at,quote_workload,sschemel,uni_price,qend_time,qstart_time,act_end_time,act_start_time,oshare,share_fee
@@ -183,6 +183,8 @@
and date_format(res.qstart_time,'%Y-%m-%d') = date_format(#{qstartTime},'%Y-%m-%d')
and date_format(res.act_end_time,'%Y-%m-%d') = date_format(#{actEndTime},'%Y-%m-%d')
and date_format(res.act_start_time,'%Y-%m-%d') = date_format(#{actStartTime},'%Y-%m-%d')
+ and res.oshare = #{oshare}
+ and res.share_fee = #{shareFee}
@@ -211,7 +213,9 @@
qend_time = #{qendTime},
qstart_time = #{qstartTime},
act_end_time = #{actEndTime},
- act_start_time = #{actStartTime}
+ act_start_time = #{actStartTime},
+ oshare = #{oshare},
+ share_fee = #{shareFee}
userid = #{userid},
@@ -240,6 +244,8 @@
qstart_time = #{qstartTime},
act_end_time = #{actEndTime},
act_start_time = #{actStartTime},
+ oshare = #{oshare},
+ share_fee = #{shareFee},
@@ -268,6 +274,8 @@
qend_time = #{item.qendTime},
qstart_time = #{item.qstartTime},
act_end_time = #{item.actEndTime},
- act_start_time = #{item.actStartTime}
+ act_start_time = #{item.actStartTime},
+ oshare = #{item.oshare},
+ share_fee = #{item.shareFee}
\ No newline at end of file