Browse Source

处理协单,修改,正常不存在协单,反想操作有协单需要单独处理

anderx 1 year ago
parent
commit
970632bbe0

+ 2 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -486,6 +486,8 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 			List<PublicRelease> list = publicReleaseMapper.selectByMainId(in.getId(),3,null);
 			String[] split = in.getAssistAid().split(",");
 			if (split.length==0){
+				in.setAssistAid("");
+				in.setAssistAidName("");
 				for (PublicRelease e : list) {
 					if (e.getClockIn()==1){
 						throw new BusinessException("协单打卡不能删除");