Compare commits
No commits in common. '5cf2ac8dec1b6e3c36f4f9948fb470bda1ef3875' and 'f91ad6de9bb1bd76446c74a410ee35f2df83e694' have entirely different histories.
5cf2ac8dec
...
f91ad6de9b
2 changed files with 30 additions and 105 deletions
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
package apelet.association.plugin.member; |
||||
|
||||
import apelet.common.core.object.ObjectValue; |
||||
import apelet.common.online.plugin.BeginOperationTransactionArgs; |
||||
import apelet.common.online.plugin.OperationResult; |
||||
import apelet.common.online.plugin.OperationServicePlugIn; |
||||
|
||||
/** |
||||
* 单位名称变更单操作插件。 |
||||
*/ |
||||
public class UnitNameChangeOperationPlugin extends OperationServicePlugIn { |
||||
|
||||
private static final String FIELD_NUMBER = "number"; |
||||
|
||||
@Override |
||||
public void beginOperationTransaction(BeginOperationTransactionArgs args) { |
||||
ObjectValue model = args.getModel(); |
||||
keepExistingBillNumber(model); |
||||
} |
||||
|
||||
private void keepExistingBillNumber(ObjectValue model) { |
||||
if (model == null) { |
||||
return; |
||||
} |
||||
String number = model.getString(FIELD_NUMBER); |
||||
if (number != null && !number.trim().isEmpty()) { |
||||
model.put(FIELD_NUMBER, number); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue