diff --git a/code/java/car_dealer/.vscode/c_cpp_properties.json b/code/java/car_dealer/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..3e8d654 --- /dev/null +++ b/code/java/car_dealer/.vscode/c_cpp_properties.json @@ -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 +} \ No newline at end of file diff --git a/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealer.java b/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealer.java new file mode 100644 index 0000000..d2a2602 --- /dev/null +++ b/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealer.java @@ -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; // 车商代码 +} + diff --git a/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealerAchievement.java b/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealerAchievement.java new file mode 100644 index 0000000..1011697 --- /dev/null +++ b/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealerAchievement.java @@ -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; +} + diff --git a/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealerScheme.java b/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealerScheme.java new file mode 100644 index 0000000..2018029 --- /dev/null +++ b/code/java/car_dealer/src/main/java/com/cpic/xim/car_dealer/models/data/structure/CarDealerScheme.java @@ -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; // 是否达成预期 +}; + diff --git a/code/java/car_dealer/src/main/webapp/WEB-INF/web.xml b/code/java/car_dealer/src/main/webapp/WEB-INF/web.xml index d388a9a..855ae90 100644 --- a/code/java/car_dealer/src/main/webapp/WEB-INF/web.xml +++ b/code/java/car_dealer/src/main/webapp/WEB-INF/web.xml @@ -1,6 +1,5 @@ - + - Archetype Created Web Application