红太阳POC

POC开发
dxfeng 7 months ago
parent 245ecb99ad
commit 731b047779

@ -40,6 +40,8 @@ public class HtyController {
String xmpfqz = Util.null2String((String) map.get("xmpfqz")); String xmpfqz = Util.null2String((String) map.get("xmpfqz"));
String gwzzpfqz = Util.null2String((String) map.get("gwzzpfqz")); String gwzzpfqz = Util.null2String((String) map.get("gwzzpfqz"));
String gwzzpf = Util.null2String((String) map.get("gwzzpf")); String gwzzpf = Util.null2String((String) map.get("gwzzpf"));
String billId = Util.null2String((String) map.get("billId"));
RecordSet rs = new RecordSet(); RecordSet rs = new RecordSet();
List<Double> list = new ArrayList<>(); List<Double> list = new ArrayList<>();
// 考核周期。考核人员 // 考核周期。考核人员
@ -83,7 +85,11 @@ public class HtyController {
BigDecimal result1 = average.multiply(xmpfqzBig).setScale(2, RoundingMode.HALF_UP); BigDecimal result1 = average.multiply(xmpfqzBig).setScale(2, RoundingMode.HALF_UP);
BigDecimal result2 = gwzzpfqzBig.multiply(BigDecimal.valueOf(gwzzpfInt)).setScale(2, RoundingMode.HALF_UP); BigDecimal result2 = gwzzpfqzBig.multiply(BigDecimal.valueOf(gwzzpfInt)).setScale(2, RoundingMode.HALF_UP);
returnMap.put("result", result1.add(result2)); BigDecimal add = result1.add(result2);
returnMap.put("result", add);
// 更新表中的数据
rs.executeUpdate("update uf_xmzkh set khzdf = ? where id = ? ", add, billId);
} }

@ -60,7 +60,7 @@ public class RegistrationDistributionExpand extends AbstractModeExpandJavaCodeNe
String name = cell.getName(); String name = cell.getName();
String value = cell.getValue(); String value = cell.getValue();
if ("khzzdf".equals(name)) { if ("khzzdf".equals(name)) {
result.setScore(Convert.toInt(value, 0)); result.setScore(Convert.toDouble(value, 0D));
} }
} }
resultList.add(result); resultList.add(result);
@ -176,7 +176,7 @@ public class RegistrationDistributionExpand extends AbstractModeExpandJavaCodeNe
static class Result { static class Result {
String id; String id;
Integer score; Double score;
String level; String level;
Integer rank; Integer rank;
@ -188,11 +188,11 @@ public class RegistrationDistributionExpand extends AbstractModeExpandJavaCodeNe
this.id = id; this.id = id;
} }
public Integer getScore() { public Double getScore() {
return score; return score;
} }
public void setScore(Integer score) { public void setScore(Double score) {
this.score = score; this.score = score;
} }

Loading…
Cancel
Save