zouxuan 4 лет назад
Родитель
Сommit
9663927431

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/ReplacementInstrumentActivity.java

@@ -18,6 +18,9 @@ public class ReplacementInstrumentActivity {
 	
 	/**  */
 	private Integer userId;
+
+	/**  */
+	private Integer openFlag;
 	
 	/**  */
 	private String userName;
@@ -46,6 +49,14 @@ public class ReplacementInstrumentActivity {
 	/**  */
 	private java.util.Date updateTime;
 
+	public Integer getOpenFlag() {
+		return openFlag;
+	}
+
+	public void setOpenFlag(Integer openFlag) {
+		this.openFlag = openFlag;
+	}
+
 	public String getCooperationOrganName() {
 		return cooperationOrganName;
 	}

+ 2 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ReplacementInstrumentActivityServiceImpl.java

@@ -10,6 +10,7 @@ import com.ym.mec.biz.dal.entity.ReplacementInstrumentActivity;
 import com.ym.mec.biz.service.ReplacementInstrumentActivityService;
 import com.ym.mec.biz.dal.dao.ReplacementInstrumentActivityDao;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
 @Service
 public class ReplacementInstrumentActivityServiceImpl extends BaseServiceImpl<Integer, ReplacementInstrumentActivity> implements ReplacementInstrumentActivityService {
@@ -25,6 +26,7 @@ public class ReplacementInstrumentActivityServiceImpl extends BaseServiceImpl<In
 	}
 
 	@Override
+	@Transactional(rollbackFor = Exception.class)
 	public Object add(ReplacementInstrumentActivity replacementInstrumentActivity) {
 		SysUser sysUser = sysUserFeignService.queryUserInfo();
 		if (sysUser == null) {

+ 4 - 0
mec-biz/src/main/resources/config/mybatis/ReplacementInstrumentActivityMapper.xml

@@ -17,6 +17,7 @@
 		<result column="subject_id_" property="subjectId" />
 		<result column="question_result_" property="questionResult" />
 		<result column="instruments_id_" property="instrumentsId" />
+		<result column="open_flag_" property="openFlag" />
 		<result column="create_time_" property="createTime" />
 		<result column="update_time_" property="updateTime" />
 	</resultMap>
@@ -43,6 +44,9 @@
 		<if test="subjectId != null">
 		subject_id_ = #{subjectId},
 		</if>
+		<if test="openFlag != null">
+		open_flag_ = #{openFlag},
+		</if>
 		<if test="userId != null">
 		user_id_ = #{userId},
 		</if>