| | |
| | | <result column="adminId" property="adminId" jdbcType="BIGINT" />
|
| | |
|
| | | <association property="userInfo" column="uid"
|
| | | select="com.yeshi.fanli.dao.mybatis.UserInfoMapper.selectByPKey">
|
| | | select="com.yeshi.fanli.dao.mybatis.UserInfoMapper.selectByPrimaryKey">
|
| | | </association>
|
| | |
|
| | | <association property="system" column="sid"
|
| | |
| | | AND <![CDATA[TO_DAYS( FROM_UNIXTIME(t.extractTime/1000)) = TO_DAYS(NOW())]]>
|
| | |
|
| | | </select>
|
| | |
|
| | | |
| | | |
| | | <select id="sumToadyApplyByUid" resultType="java.math.BigDecimal">
|
| | | SELECT IFNULL(SUM(t.`money`),0) FROM yeshi_ec_extract t
|
| | | WHERE t.`uid` = #{uid}
|
| | | AND FROM_UNIXTIME(t.extractTime/1000,'%Y-%m-%d') = #{day}
|
| | | </select>
|
| | | |
| | | |
| | | <select id="sumMoneyByUidAndState" resultType="java.math.BigDecimal">
|
| | | SELECT IFNULL(SUM(t.`money`),0) FROM yeshi_ec_extract t
|
| | | WHERE t.`uid` = #{uid}
|
| | | <if test="stateList!=null">
|
| | | <foreach collection="stateList" item="state" open="and (" close=")" separator=" or ">
|
| | | `state`=#{state}
|
| | | </foreach>
|
| | | </if>
|
| | | </select>
|
| | | |
| | | |
| | | </mapper> |