Commit 6ed55500 authored by hongguangwu's avatar hongguangwu

Merge remote-tracking branch 'origin/develop' into develop

parents 5c162378 2c562227
...@@ -194,23 +194,19 @@ public class ExcelUtil <T> implements Serializable { ...@@ -194,23 +194,19 @@ public class ExcelUtil <T> implements Serializable {
* @Param * @Param
* @return * @return
**/ **/
public static String getLabelByDataType(String value,String dataType){ public static String getDicValueByDataType(String value, String dataType){
String tempValue = null; String tempStr = null;
if (Common.isEmpty(tempValue) && Common.isNotNull(dataType)){ Map<String,String> dicObj = (Map<String, String>) RedisUtil.redis.opsForValue()
Map<String,String> dicObj = (Map<String, String>) RedisUtil.redis.opsForValue() .get(CacheConstants.DICT_DETAILS
.get(CacheConstants.DICT_DETAILS + CommonConstants.COLON_STRING
+ CommonConstants.COLON_STRING + dataType);
+dataType); for (Map.Entry<String,String> entry:dicObj.entrySet()){
if (dicObj != null) { if (Common.isNotNull(entry.getValue()) && entry.getValue().equals(value.trim())){
for (Map.Entry<String, String> entry : dicObj.entrySet()) { tempStr = entry.getKey();
if (Common.isNotNull(entry.getKey()) && entry.getKey().equals(value.trim())) { break;
tempValue = entry.getValue();
break;
}
}
} }
} }
return tempValue; return tempStr;
} }
/** /**
* 返回传参对应的fileds * 返回传参对应的fileds
......
...@@ -1869,7 +1869,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -1869,7 +1869,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
project.setCreateBy(user.getId()); project.setCreateBy(user.getId());
project.setCreateName(user.getNickname()); project.setCreateName(user.getNickname());
project.setDeptNo(excel.getSettleDomainCode()); project.setDeptNo(excel.getSettleDomainCode());
project.setContractType(excelUtil.getLabelByDataType(excel.getContractName(), ExcelAttributeConstants.PERSONNEL_TYPE)); project.setContractType(excelUtil.getDicValueByDataType(excel.getContractName(), ExcelAttributeConstants.PERSONNEL_TYPE));
project.setEmpIdcard(excel.getEmpIdcard()); project.setEmpIdcard(excel.getEmpIdcard());
project.setEmpName(excel.getEmpName()); project.setEmpName(excel.getEmpName());
project.setEmpNatrue(excel.getEmpType()); project.setEmpNatrue(excel.getEmpType());
......
...@@ -388,12 +388,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa ...@@ -388,12 +388,14 @@ public class TPaymentInfoServiceImpl extends ServiceImpl<TPaymentInfoMapper, TPa
} }
} }
if (Common.isNotNull(socialCreateMonth)) { if (Common.isNotNull(socialCreateMonth)) {
wrapper.eq(TPaymentInfo::getSocialCreateMonth, socialCreateMonth).or() wrapper.and(wrapper2 -> wrapper2.eq(TPaymentInfo::getSocialCreateMonth, socialCreateMonth)
.eq(TPaymentInfo::getProvidentCreateMonth, socialCreateMonth); .or(wrapper1 -> wrapper1.eq(TPaymentInfo::getProvidentCreateMonth, socialCreateMonth)
));
} }
if (Common.isNotNull(socialPayMonth)) { if (Common.isNotNull(socialPayMonth)) {
wrapper.eq(TPaymentInfo::getSocialPayMonth, socialPayMonth).or() wrapper.and(wrapper2 -> wrapper2.eq(TPaymentInfo::getSocialPayMonth, socialPayMonth)
.eq(TPaymentInfo::getProvidentPayMonth, socialPayMonth); .or(wrapper1 -> wrapper1.eq(TPaymentInfo::getProvidentPayMonth, socialPayMonth)
));
} }
return wrapper; return wrapper;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment