Commit 66849842 by 叶立庆

增加日报扣款、平板扣款更新表,工资计算时,有更新表取更新表,没有取原始数据计算

1 parent 6b1e3aa7
package cn.com.glsx.dj.staff.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "dj_car_life_staff_month_bdm_count")
public class StaffMonthBdmCount implements Serializable {
/**
* 主键ID
*/
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 驻店员工姓名
*/
@Column(name = "staff_name")
private String staffName;
/**
* 驻店员工手机号
*/
@Column(name = "staff_phone")
private String staffPhone;
/**
* 扣减月份
*/
@Column(name = "deduct_month")
private String deductMonth;
/**
* 行为扣款类型(1:日报扣款,2:平板扣款)
*/
@Column(name = "behavior_deduct_type")
private Byte behaviorDeductType;
/**
* 行为数量
*/
@Column(name = "behavior_count")
private Integer behaviorCount;
/**
* 是否修正(0-未修正,1-已修正)
*/
@Column(name = "modify_flag")
private Integer modifyFlag;
/**
* 创建时间
*/
@Column(name = "created_date")
private Date createdDate;
/**
* 创建人
*/
@Column(name = "create_by")
private String createBy;
/**
* 修改时间
*/
@Column(name = "updated_date")
private Date updatedDate;
/**
* 修改人
*/
@Column(name = "updated_by")
private String updatedBy;
/**
* 删除标识(D:已删除;N:未删除)
*/
@Column(name = "deleted_flag")
private String deletedFlag;
}
\ No newline at end of file
package cn.com.glsx.dj.staff.mapper;
import cn.com.glsx.dj.staff.model.StaffMonthBdmCount;
import org.apache.ibatis.annotations.Mapper;
import org.oreframework.datasource.mybatis.mapper.OreMapper;
@Mapper
public interface StaffMonthBdmCountMapper extends OreMapper<StaffMonthBdmCount> {
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.staff.mapper.StaffMonthBdmCountMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.staff.model.StaffMonthBdmCount" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="staff_name" property="staffName" jdbcType="VARCHAR" />
<result column="staff_phone" property="staffPhone" jdbcType="VARCHAR" />
<result column="deduct_month" property="deductMonth" jdbcType="CHAR" />
<result column="behavior_deduct_type" property="behaviorDeductType" jdbcType="TINYINT" />
<result column="behavior_count" property="behaviorCount" jdbcType="INTEGER" />
<result column="modify_flag" property="modifyFlag" jdbcType="INTEGER" />
<result column="created_date" property="createdDate" jdbcType="TIMESTAMP" />
<result column="create_by" property="createBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, staff_name, staff_phone, deduct_month, behavior_deduct_type, behavior_count,
modify_flag, created_date, create_by, updated_date, updated_by, deleted_flag
</sql>
</mapper>
\ No newline at end of file
......@@ -29,7 +29,7 @@
<!-- <table tableName="dj_car_life_merchant_goods_voucher" domainObjectName="MerchantGoodsVoucher" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>-->
<table tableName="dj_car_life_dict" domainObjectName="Dict" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<table tableName="test" domainObjectName="test" enableSelectByExample="false" enableCountByExample="false" enableDeleteByExample="false" enableUpdateByExample="false">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
</context>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!