记账本
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
<result column="district" jdbcType="VARCHAR" property="district" />
|
||||
<result column="township" jdbcType="VARCHAR" property="township" />
|
||||
<result column="storage_status" jdbcType="TINYINT" property="storageStatus" />
|
||||
<result column="opportunity_point_code" jdbcType="VARCHAR" property="opportunityPointCode" />
|
||||
<result column="opportunity_point_name" jdbcType="VARCHAR" property="opportunityPointName" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="allColumn">
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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">
|
||||
<!--mybatis-3-mapper.dtd:约束文件的名称,限制和检查在当前文件中出现的标签和属性符合mybatis的要求-->
|
||||
<!--namespace:命名空间,要有唯一的值,要求使用dao接口的权限定名称(一个dao接口对应一个mapper,namespace指明对应哪个dao接口)-->
|
||||
<mapper namespace="com.cool.store.mapper.TallyBookMapper">
|
||||
<!-- 所有的数据库操作都要写在mapper标签中,可以使用特定的标签表示数据库中的特定操作 -->
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.TallyBookDO">
|
||||
<!-- 主键字段 -->
|
||||
<id property="id" column="id" jdbcType="BIGINT" />
|
||||
<!-- 普通字段 -->
|
||||
<result property="partnerId" column="partner_id" jdbcType="VARCHAR" />
|
||||
<result property="shopId" column="shop_id" jdbcType="BIGINT" />
|
||||
<result property="year" column="year" jdbcType="INTEGER" />
|
||||
<result property="month" column="month" jdbcType="INTEGER" />
|
||||
<result property="employeeSalary" column="employee_salary" jdbcType="DECIMAL" />
|
||||
<result property="administrativeExpenses" column="administrative_expenses" jdbcType="DECIMAL" />
|
||||
<result property="travelExpense" column="travel_expense" jdbcType="DECIMAL" />
|
||||
<result property="promotionExpense" column="promotion_expense" jdbcType="DECIMAL" />
|
||||
<result property="utilities" column="utilities" jdbcType="DECIMAL" />
|
||||
<result property="socialInsurancePremium" column="social_insurance_premium" jdbcType="DECIMAL" />
|
||||
<result property="staffDormitoryFee" column="staff_dormitory_fee" jdbcType="DECIMAL" />
|
||||
<result property="consumablesCost" column="consumables_cost" jdbcType="DECIMAL" />
|
||||
<result property="totalCost" column="total_cost" jdbcType="DECIMAL" />
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP" />
|
||||
<result property="createUser" column="create_user" jdbcType="VARCHAR" />
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP" />
|
||||
<result property="updateUser" column="update_user" jdbcType="VARCHAR" />
|
||||
<result property="status" column="status" jdbcType="TINYINT"/>
|
||||
</resultMap>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user