批量调薪action
This commit is contained in:
parent
5b1615675d
commit
2f8f5f299e
|
|
@ -26,6 +26,16 @@ public class CheckSalaryArchiveBatchAdjustmentByUpload implements Action {
|
|||
return ServiceUtil.getService(SalaryArchiveExcelServiceImpl.class, user);
|
||||
}
|
||||
|
||||
private String batSalaryExcelField;
|
||||
|
||||
public String getBatSalaryExcelField() {
|
||||
return batSalaryExcelField;
|
||||
}
|
||||
|
||||
public void setBatSalaryExcelField(String batSalaryExcelField) {
|
||||
this.batSalaryExcelField = batSalaryExcelField;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String execute(RequestInfo requestInfo) {
|
||||
try {
|
||||
|
|
@ -33,11 +43,11 @@ public class CheckSalaryArchiveBatchAdjustmentByUpload implements Action {
|
|||
Map<String, String> fieldMap = Arrays.stream(properties).collect(Collectors.toMap(Property::getName,
|
||||
property -> Util.null2String(property.getValue())));
|
||||
|
||||
String dxmd = fieldMap.get("dxmd");
|
||||
String docId = fieldMap.get(batSalaryExcelField);
|
||||
|
||||
RecordSet rs = new RecordSet();
|
||||
String queryImageId = "select imagefileid from docimagefile where docid = ?";
|
||||
rs.executeQuery(queryImageId, dxmd);
|
||||
rs.executeQuery(queryImageId, docId);
|
||||
String imagefileid = null;
|
||||
if (rs.next()) {
|
||||
imagefileid = rs.getString("imagefileid");
|
||||
|
|
|
|||
|
|
@ -25,6 +25,16 @@ public class SalaryArchiveBatchAdjustmentByUpload implements Action {
|
|||
return ServiceUtil.getService(SalaryArchiveExcelServiceImpl.class, user);
|
||||
}
|
||||
|
||||
private String batSalaryExcelField;
|
||||
|
||||
public String getBatSalaryExcelField() {
|
||||
return batSalaryExcelField;
|
||||
}
|
||||
|
||||
public void setBatSalaryExcelField(String batSalaryExcelField) {
|
||||
this.batSalaryExcelField = batSalaryExcelField;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String execute(RequestInfo requestInfo) {
|
||||
try {
|
||||
|
|
@ -33,11 +43,11 @@ public class SalaryArchiveBatchAdjustmentByUpload implements Action {
|
|||
Map<String, String> fieldMap = Arrays.stream(properties).collect(Collectors.toMap(Property::getName,
|
||||
property -> Util.null2String(property.getValue())));
|
||||
|
||||
String dxmd = fieldMap.get("dxmd");
|
||||
String docId = fieldMap.get(batSalaryExcelField);
|
||||
|
||||
RecordSet rs = new RecordSet();
|
||||
String queryImageId = "select imagefileid from docimagefile where docid = ?";
|
||||
rs.executeQuery(queryImageId, dxmd);
|
||||
rs.executeQuery(queryImageId, docId);
|
||||
String imagefileid = null;
|
||||
if (rs.next()) {
|
||||
imagefileid = rs.getString("imagefileid");
|
||||
|
|
|
|||
Loading…
Reference in New Issue