保存进度!

This commit is contained in:
2023-07-31 20:14:49 +08:00
parent b2a973f7bd
commit 5b6285993f
6 changed files with 62 additions and 40 deletions

View File

@@ -16,18 +16,20 @@ public class MensualArchievementItem
public MensualArchievementItem()
{}
public MensualArchievementItem( String month, String premium)
public MensualArchievementItem( int month, String premium)
{
this.month = month;
this.premium = premium;
}
public String getMonth()
public int getMonth()
{
return month;
}
public void setMonth( String month )
public void setMonth( int month )
{
this.month = month;
}
@@ -42,18 +44,14 @@ public class MensualArchievementItem
this.premium = premium;
}
@Override
public String toString()
{
return "MensualArchievementItem [month=" + month + ", premium=" + premium + "]";
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((month == null) ? 0 : month.hashCode());
result = prime * result + month;
result = prime * result + ((premium == null) ? 0 : premium.hashCode());
return result;
}
@@ -68,11 +66,7 @@ public class MensualArchievementItem
if ( getClass() != obj.getClass() )
return false;
MensualArchievementItem other = (MensualArchievementItem) obj;
if ( month == null )
{
if ( other.month != null )
return false;
} else if ( !month.equals( other.month ) )
if ( month != other.month )
return false;
if ( premium == null )
{
@@ -83,9 +77,17 @@ public class MensualArchievementItem
return true;
}
@Override
public String toString()
{
return "MensualArchievementItem [month=" + month + ", premium=" + premium + "]";
}
// 月份
@JsonProperty( "month" )
private String month;
private int month;
// 月总保费
@JsonProperty( "premium" )

View File

@@ -10,7 +10,7 @@
#{a_mensual_cur, mode=OUT, jdbcType=CURSOR, resultMap=MensualArchievementMapper})
</select>
<resultMap id="MensualArchievementMapper" type="MensualArchievementItem">
<id property="month" column="mm" />
<id property="month" column="mm" javaType="INT"/>
<result property="premium" column="bf" />
</resultMap>
</mapper>