Sum data as MySQL transaction ID and show it as student ID
By : Peshawa M. Qadir
Date : March 29 2020, 07:55 AM
it should still fix some issue Try this: Here you need to get amount Student wise, so need to do GROUP BY student & also want sum amount, so need to call SUM function and pass amount in it. code :
SELECT std_id AS studentid , SUM(pay) as Amount
FROM table
GROUP BY std_id;
|
How to show transaction input data in a Hyperledger Composer query
By : Dzikuri
Date : March 29 2020, 07:55 AM
|
How to iterate and show the transaction input data?
By : user1502741
Date : March 29 2020, 07:55 AM
|
How to rollback outer transaction in case of failed inner transaction in but inner transaction should save data Spring
By : user2768898
Date : March 29 2020, 07:55 AM
To fix this issue Configure the inner transactional method as Propagation.REQUIRES_NEW such that it will always commit (i.e save the data) when the method completes whether the outer transactional method rollbacks or not. Also, make sure outer method does not self invocation the inner method as @Transactional does not work in this case (See Method visibility and @Transactional section in docs). code :
@Service
public class Service1 {
@Autowired
private Service2 service2;
@Transactional(rollbackFor=Exception.class)
public void test1(Account account) throws Exception {
DOA.save(account);
status = service2.test2(account);
if(status!='SUCCESS'){
throw new Exception("Api call failed");
}
}
}
@Service
public class Service2{
@Transactional(propagation=Propagation.REQUIRES_NEW)
public void test2(Account account) {
response // API Call
DOA.save(response);
return response.status;
}
}
|
Project Advice: push ERP/SQL transaction data to Slack
By : ASv
Date : March 29 2020, 07:55 AM
should help you out Epicor ERP has a powerful extension system built in. I would create a Business Process Method (BPM) for ReceiptEntry.Update. This wouldn't check for added rows but more specifically where the Recieved flag has been changed to set. This will prevent you getting multiple notifications every time a user saves an incomplete record.
|