Parcourir la source

监管平台删除数据方法增加事务控制的注解

huangwenjie il y a 5 ans
Parent
commit
2344246c79

+ 2 - 0
business/im-service/src/main/java/com/yihu/jw/im/service/ImService.java

@ -55,6 +55,7 @@ import org.springframework.data.domain.Sort;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import javax.servlet.http.HttpServletRequest;
@ -2177,6 +2178,7 @@ public class ImService {
	 * @param list outpatientlist
	 * @param date 日期
	 */
	@Transactional
	public void deleteJobData(List<WlyyOutpatientDO> list,String date) throws Exception {
		for (WlyyOutpatientDO outpatient: list){
			String consultCode =  this.getConsultCodeByOutpatientId(outpatient.getId());