mapper配置文件中的结果集:
<result column="att_upload_date" jdbcType="Date" property="attUploadDate" javaType="Date" />
jdbcType="DATE" 只获取至年月日。 2018-08-20 00:00:00
jdbcType="Date" 获取至时分秒。 2018-08-20 16:16:28
xml配置文件
#用于作为参数#
$用于作为字符串拼接$
mapper配置文件中的结果集:
<result column="att_upload_date" jdbcType="Date" property="attUploadDate" javaType="Date" />
jdbcType="DATE" 只获取至年月日。 2018-08-20 00:00:00
jdbcType="Date" 获取至时分秒。 2018-08-20 16:16:28
xml配置文件
#用于作为参数#
$用于作为字符串拼接$