保存进度!

This commit is contained in:
Kane Wang 2022-10-10 10:27:25 +08:00
parent 01384e15e0
commit 40bcfa916f
5 changed files with 500 additions and 2 deletions

View File

@ -0,0 +1,20 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\Strawberry\\c\\bin\\gcc.exe",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "windows-gcc-x64"
}
],
"version": 4
}

View File

@ -0,0 +1,82 @@
/*
* @Author: Kane
* @Date: 2022-10-10 09:00:18
* @LastEditors: Kane
* @LastEditTime: 2022-10-10 09:03:53
* @FilePath: \car_dealer\src\main\java\com\cpic\xim\car_dealer\models\data_structure\CarDealer.java
* @Description: 车商对象
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
package com.cpic.xim.car_dealer.models.data.structure;
public class CarDealer
{
public CarDealer( String carDealerName, String carDealerCode)
{
this.carDealerName = carDealerName;
this.carDealerCode = carDealerCode;
}
public String getCarDealerName()
{
return carDealerName;
}
public void setCarDealerName( String carDealerName )
{
this.carDealerName = carDealerName;
}
public String getCarDealerCode()
{
return carDealerCode;
}
public void setCarDealerCode( String carDealerCode )
{
this.carDealerCode = carDealerCode;
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((carDealerName == null) ? 0 : carDealerName.hashCode());
result = prime * result + ((carDealerCode == null) ? 0 : carDealerCode.hashCode());
return result;
}
@Override
public boolean equals( Object obj )
{
if ( this == obj)
return true;
if ( obj == null)
return false;
if ( getClass() != obj.getClass())
return false;
CarDealer other = (CarDealer) obj;
if ( carDealerName == null)
{
if ( other.carDealerName != null)
return false;
} else if ( !carDealerName.equals( other.carDealerName ))
return false;
if ( carDealerCode == null)
{
if ( other.carDealerCode != null)
return false;
} else if ( !carDealerCode.equals( other.carDealerCode ))
return false;
return true;
}
private String carDealerName; // 车商名称
private String carDealerCode; // 车商代码
}

View File

@ -0,0 +1,196 @@
/*
* @Author: Kane
* @Date: 2022-10-10 09:05:22
* @LastEditors: Kane
* @LastEditTime: 2022-10-10 09:18:56
* @FilePath: \car_dealer\src\main\java\com\cpic\xim\car_dealer\models\data_structure\CarDealerAchievement.java
* @Description: 车商业绩表
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
package com.cpic.xim.car_dealer.models.data.structure;
public class CarDealerAchievement
{
public CarDealerAchievement( String theYear, String theMonth, String carDealerCode,
double checkedAchievement, int policyAmount, int cpicAmount, int piccAmount,
int pinganAmount, int othersAmount)
{
this.theYear = theYear;
this.theMonth = theMonth;
this.carDealerCode = carDealerCode;
this.checkedAchievement = checkedAchievement;
this.policyAmount = policyAmount;
this.cpicAmount = cpicAmount;
this.piccAmount = piccAmount;
this.pinganAmount = pinganAmount;
this.othersAmount = othersAmount;
}
public String getTheYear()
{
return theYear;
}
public void setTheYear( String theYear )
{
this.theYear = theYear;
}
public String getTheMonth()
{
return theMonth;
}
public void setTheMonth( String theMonth )
{
this.theMonth = theMonth;
}
public String getCarDealerCode()
{
return carDealerCode;
}
public void setCarDealerCode( String carDealerCode )
{
this.carDealerCode = carDealerCode;
}
public double getCheckedAchievement()
{
return checkedAchievement;
}
public void setCheckedAchievement( double checkedAchievement )
{
this.checkedAchievement = checkedAchievement;
}
public int getPolicyAmount()
{
return policyAmount;
}
public void setPolicyAmount( int policyAmount )
{
this.policyAmount = policyAmount;
}
public int getCpicAmount()
{
return cpicAmount;
}
public void setCpicAmount( int cpicAmount )
{
this.cpicAmount = cpicAmount;
}
public int getPiccAmount()
{
return piccAmount;
}
public void setPiccAmount( int piccAmount )
{
this.piccAmount = piccAmount;
}
public int getPinganAmount()
{
return pinganAmount;
}
public void setPinganAmount( int pinganAmount )
{
this.pinganAmount = pinganAmount;
}
public int getOthersAmount()
{
return othersAmount;
}
public void setOthersAmount( int othersAmount )
{
this.othersAmount = othersAmount;
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((theYear == null) ? 0 : theYear.hashCode());
result = prime * result + ((theMonth == null) ? 0 : theMonth.hashCode());
result = prime * result + ((carDealerCode == null) ? 0 : carDealerCode.hashCode());
long temp;
temp = Double.doubleToLongBits( checkedAchievement );
result = prime * result + (int) (temp ^ (temp >>> 32));
result = prime * result + policyAmount;
result = prime * result + cpicAmount;
result = prime * result + piccAmount;
result = prime * result + pinganAmount;
result = prime * result + othersAmount;
return result;
}
@Override
public boolean equals( Object obj )
{
if ( this == obj)
return true;
if ( obj == null)
return false;
if ( getClass() != obj.getClass())
return false;
CarDealerAchievement other = (CarDealerAchievement) obj;
if ( theYear == null)
{
if ( other.theYear != null)
return false;
} else if ( !theYear.equals( other.theYear ))
return false;
if ( theMonth == null)
{
if ( other.theMonth != null)
return false;
} else if ( !theMonth.equals( other.theMonth ))
return false;
if ( carDealerCode == null)
{
if ( other.carDealerCode != null)
return false;
} else if ( !carDealerCode.equals( other.carDealerCode ))
return false;
if ( Double.doubleToLongBits( checkedAchievement ) != Double
.doubleToLongBits( other.checkedAchievement ))
return false;
if ( policyAmount != other.policyAmount)
return false;
if ( cpicAmount != other.cpicAmount)
return false;
if ( piccAmount != other.piccAmount)
return false;
if ( pinganAmount != other.pinganAmount)
return false;
if ( othersAmount != other.othersAmount)
return false;
return true;
}
private String theYear;
private String theMonth;
private String carDealerCode;
private double checkedAchievement;
private int policyAmount;
private int cpicAmount;
private int piccAmount;
private int pinganAmount;
private int othersAmount;
}

View File

@ -0,0 +1,201 @@
/*
* @Author: Kane
* @Date: 2022-10-10 09:22:06
* @LastEditors: Kane
* @LastEditTime: 2022-10-10 09:37:54
* @FilePath: \car_dealer\src\main\java\com\cpic\xim\car_dealer\models\data\structure\CarDealerScheme.java
* @Description: 车商方案表
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
package com.cpic.xim.car_dealer.models.data.structure;
/*****************************************************
* 车商方案表
* @author Kane
* @version 1.0
*****************************************************/
public class CarDealerScheme
{
public CarDealerScheme( String theYear, String theMonth, String carDealerCode,
String manHourPrice, String partPrice, String claimSupport, String scheme,
String isQualified)
{
this.theYear = theYear;
this.theMonth = theMonth;
this.carDealerCode = carDealerCode;
this.manHourPrice = manHourPrice;
this.partPrice = partPrice;
this.claimSupport = claimSupport;
this.scheme = scheme;
this.isQualified = isQualified;
}
public String getTheYear()
{
return theYear;
}
public void setTheYear( String theYear )
{
this.theYear = theYear;
}
public String getTheMonth()
{
return theMonth;
}
public void setTheMonth( String theMonth )
{
this.theMonth = theMonth;
}
public String getCarDealerCode()
{
return carDealerCode;
}
public void setCarDealerCode( String carDealerCode )
{
this.carDealerCode = carDealerCode;
}
public String getManHourPrice()
{
return manHourPrice;
}
public void setManHourPrice( String manHourPrice )
{
this.manHourPrice = manHourPrice;
}
public String getPartPrice()
{
return partPrice;
}
public void setPartPrice( String partPrice )
{
this.partPrice = partPrice;
}
public String getClaimSupport()
{
return claimSupport;
}
public void setClaimSupport( String claimSupport )
{
this.claimSupport = claimSupport;
}
public String getScheme()
{
return scheme;
}
public void setScheme( String scheme )
{
this.scheme = scheme;
}
public String getIsQualified()
{
return isQualified;
}
public void setIsQualified( String isQualified )
{
this.isQualified = isQualified;
}
@Override
public int hashCode()
{
final int prime = 31;
int result = 1;
result = prime * result + ((theYear == null) ? 0 : theYear.hashCode());
result = prime * result + ((theMonth == null) ? 0 : theMonth.hashCode());
result = prime * result + ((carDealerCode == null) ? 0 : carDealerCode.hashCode());
result = prime * result + ((manHourPrice == null) ? 0 : manHourPrice.hashCode());
result = prime * result + ((partPrice == null) ? 0 : partPrice.hashCode());
result = prime * result + ((claimSupport == null) ? 0 : claimSupport.hashCode());
result = prime * result + ((scheme == null) ? 0 : scheme.hashCode());
result = prime * result + ((isQualified == null) ? 0 : isQualified.hashCode());
return result;
}
@Override
public boolean equals( Object obj )
{
if ( this == obj)
return true;
if ( obj == null)
return false;
if ( getClass() != obj.getClass())
return false;
CarDealerScheme other = (CarDealerScheme) obj;
if ( theYear == null)
{
if ( other.theYear != null)
return false;
} else if ( !theYear.equals( other.theYear ))
return false;
if ( theMonth == null)
{
if ( other.theMonth != null)
return false;
} else if ( !theMonth.equals( other.theMonth ))
return false;
if ( carDealerCode == null)
{
if ( other.carDealerCode != null)
return false;
} else if ( !carDealerCode.equals( other.carDealerCode ))
return false;
if ( manHourPrice == null)
{
if ( other.manHourPrice != null)
return false;
} else if ( !manHourPrice.equals( other.manHourPrice ))
return false;
if ( partPrice == null)
{
if ( other.partPrice != null)
return false;
} else if ( !partPrice.equals( other.partPrice ))
return false;
if ( claimSupport == null)
{
if ( other.claimSupport != null)
return false;
} else if ( !claimSupport.equals( other.claimSupport ))
return false;
if ( scheme == null)
{
if ( other.scheme != null)
return false;
} else if ( !scheme.equals( other.scheme ))
return false;
if ( isQualified == null)
{
if ( other.isQualified != null)
return false;
} else if ( !isQualified.equals( other.isQualified ))
return false;
return true;
}
private String theYear;
private String theMonth;
private String carDealerCode;
private String manHourPrice;
private String partPrice;
private String claimSupport; // 理赔支持
private String scheme;
private String isQualified; // 是否达成预期
};

View File

@ -1,6 +1,5 @@
<!DOCTYPE web-app>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
<web-app>
<display-name>Archetype Created Web Application</display-name>
<!-- springMVC -->