|
|
@@ -42,7 +42,7 @@ public class HpPositionCommon extends DataEntity<HpPositionCommon> {
|
|
|
private Date groupEndTime; // 拼团结束时间(岗位招聘结束时间)
|
|
|
private String settlementMethodValue; //结算方式value(用于查询)
|
|
|
private String welfare; //自发布岗位福利(0:包住宿 1:包工作餐 2:交通补助 3:加班补助 4:有提成 5:奖金 6:转正机会 7.五险一金),可多选,数组存储
|
|
|
- private String hasRegularBus; // 自发布班车(全职)(0:没有 1:有)
|
|
|
+ private String hasRegularBus; // 自发布班车(全职)(0:没有 1:有)
|
|
|
private String salaryPeriod; //自发布薪资周期(兼职)(0:天 1:周 2:月:3 次 4:时 5:其他)
|
|
|
|
|
|
public HpPositionAddress getHpPositionAddress() {
|
|
|
@@ -142,16 +142,27 @@ public class HpPositionCommon extends DataEntity<HpPositionCommon> {
|
|
|
public String getReward() {
|
|
|
if (getMaleReward() != null && getFemaleReward() != null) {
|
|
|
if (getMaleReward().equals(getFemaleReward())) {
|
|
|
+ Integer male = getMaleReward();
|
|
|
if (getFiveGroupCashback() != null) {
|
|
|
- Integer male = getMaleReward() + getFiveGroupCashback();
|
|
|
+ male = male + getFiveGroupCashback();
|
|
|
+ }
|
|
|
+ if (male != 0) {
|
|
|
return String.valueOf(male);
|
|
|
}
|
|
|
} else {
|
|
|
+ Integer male = getMaleReward();
|
|
|
+ Integer female = getFemaleReward();
|
|
|
if (getFiveGroupCashback() != null) {
|
|
|
- Integer male = getMaleReward() + getFiveGroupCashback();
|
|
|
- Integer female = getFemaleReward() + getFiveGroupCashback();
|
|
|
- return "男返" + male + ",女返" + female;
|
|
|
+ male = male + getFiveGroupCashback();
|
|
|
+ female = female + getFiveGroupCashback();
|
|
|
+ }
|
|
|
+ if (male == 0) {
|
|
|
+ return "女返" + female;
|
|
|
}
|
|
|
+ if (female == 0) {
|
|
|
+ return "男返" + male;
|
|
|
+ }
|
|
|
+ return "男返" + male + ",女返" + female;
|
|
|
}
|
|
|
}
|
|
|
return reward;
|
|
|
@@ -198,8 +209,8 @@ public class HpPositionCommon extends DataEntity<HpPositionCommon> {
|
|
|
}
|
|
|
|
|
|
public String getRegularBus() {
|
|
|
- if(StringUtils.isNotBlank(hasRegularBus)){
|
|
|
- if("0".equals(hasRegularBus)){
|
|
|
+ if (StringUtils.isNotBlank(hasRegularBus)) {
|
|
|
+ if ("0".equals(hasRegularBus)) {
|
|
|
return null;
|
|
|
}
|
|
|
regularBus = DictUtils.getDictLabel(hasRegularBus, "hasRegularBus", "");
|
|
|
@@ -260,7 +271,7 @@ public class HpPositionCommon extends DataEntity<HpPositionCommon> {
|
|
|
public String getSalary() {
|
|
|
if (StringUtils.isNotBlank(salaryPeriod)) {
|
|
|
//周结或者日结
|
|
|
- String salaryPeriod1="";
|
|
|
+ String salaryPeriod1 = "";
|
|
|
if ("0".equals(salaryPeriod) || "1".equals(salaryPeriod)) {
|
|
|
salaryPeriod1 = DictUtils.getDictLabel(salaryPeriod, "salaryPeriod", "");
|
|
|
salary = salary + "元/" + salaryPeriod1;
|
|
|
@@ -416,7 +427,7 @@ public class HpPositionCommon extends DataEntity<HpPositionCommon> {
|
|
|
}
|
|
|
|
|
|
public String getHasRegularBus() {
|
|
|
- if(StringUtils.isNotBlank(hasRegularBus)){
|
|
|
+ if (StringUtils.isNotBlank(hasRegularBus)) {
|
|
|
if ("0".equals(hasRegularBus)) {
|
|
|
return null;
|
|
|
}
|