|
|
@@ -378,10 +378,10 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
|
|
|
public Object updateTypeOther(Integer id, String typeOther,String remarks) {
|
|
|
ExpenseAccount ea = new ExpenseAccount();
|
|
|
ea.setId(id);
|
|
|
- ea.setTypeOther(typeOther);
|
|
|
- ea.setRemarks(remarks);
|
|
|
+ if (StringUtils.isNotEmpty(typeOther))ea.setTypeOther(typeOther);
|
|
|
+ if (StringUtils.isNotEmpty(remarks))ea.setRemarks(remarks);
|
|
|
expenseAccountMapper.updateByPrimaryKeySelective(ea);
|
|
|
- if (typeOther!=null){
|
|
|
+ if (StringUtils.isNotEmpty(typeOther)){
|
|
|
MainExpenseAccount mainExpenseAccount = expenseAccountMapper.selectbySonId(id);
|
|
|
StringBuffer types=new StringBuffer();
|
|
|
for (SonExpenseAccount e : mainExpenseAccount.getSonList()) {
|