|
|
@@ -127,6 +127,7 @@ public class BizQuestionGroupServiceImpl implements IBizQuestionGroupService {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public boolean updateBizQuestionGroupById(BizQuestionGroupDTO source) {
|
|
|
+ String currentUserId = LoginUserStrategy.tr.getCurrentUserId();
|
|
|
if(QuestionGroupTypeEnums.PRE.equals(source.getType())){
|
|
|
source.setFrequency(null);
|
|
|
source.setInterval(null);
|
|
|
@@ -147,6 +148,8 @@ public class BizQuestionGroupServiceImpl implements IBizQuestionGroupService {
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(source, MD5_FIELDS);
|
|
|
bizQuestionGroupPO.setVersion(oldQuestionGroup.getVersion() + 1);
|
|
|
bizQuestionGroupPO.setMd5(DigestUtil.md5Hex(stringObjectMap.toString()));
|
|
|
+ bizQuestionGroupPO.setUpdateTime(new Date());
|
|
|
+ bizQuestionGroupPO.setUpdateBy(currentUserId);
|
|
|
return baseRepository.updateQuestionGroupById(bizQuestionGroupPO) != 0;
|
|
|
}
|
|
|
|