Compare commits
2 Commits
f91ad6de9b
...
5cf2ac8dec
| Author | SHA1 | Date |
|---|---|---|
|
|
5cf2ac8dec | 1 month ago |
|
|
0b0c13ab20 | 1 month ago |
2 changed files with 105 additions and 30 deletions
@ -1,30 +0,0 @@ |
|||||||
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