Selaa lähdekoodia

优化手机端角色

xubh 4 vuotta sitten
vanhempi
commit
9bebeabdb6

+ 2 - 14
src/main/java/com/minpay/shouhuo/PersManageAction.java

@@ -139,13 +139,7 @@ public class PersManageAction implements IMINAction {
 		User user = session.getUser();
 		MINActionResult res = new MINActionResult();
 		//用户基本信息
-		VmPersonInf   ps = new VmPersonInf();
-		ps.setId(id);
-		ps.setStatus("01");//冻结
-		ps.setModifyTime(DateUtil.getCurrentDateTimeString());//修改时间
-		ps.setModifyUser(session.getUser().getId());          //修改人
-		Service.lookup(IMINDataBaseService.class)
-				.getMybatisMapper(VmPersonInfMapper.class).updateByPrimaryKeySelective(ps);
+
 		//关联表
 		VmPersonRoleInf pi = new VmPersonRoleInf();
 		pi.setState("01");
@@ -180,13 +174,7 @@ public class PersManageAction implements IMINAction {
 		//获取当前用户
 		User user = session.getUser();
 		MINActionResult res = new MINActionResult();
-		VmPersonInf   ps = new VmPersonInf();
-		ps.setId(id);
-		ps.setStatus("00");//正常
-		ps.setModifyTime(DateUtil.getCurrentDateTimeString());//修改时间
-		ps.setModifyUser(session.getUser().getId());          //修改人
-		Service.lookup(IMINDataBaseService.class)
-				.getMybatisMapper(VmPersonInfMapper.class).updateByPrimaryKeySelective(ps);
+
 		//关联表
 		VmPersonRoleInf pi = new VmPersonRoleInf();
 		pi.setState("00");

+ 1 - 2
src/main/resources/com/minpay/db/table/own/mapper/PersonManageMapper.xml

@@ -28,9 +28,8 @@
 		left  join im_branch    ib
 		on    ib.BRH_ID = ri.VPR_BRANCH_ID
 		where 1=1
-		and per.VCI_IS_USER ='1'
 		<if test="branchId!=null and branchId != ''">
-			and   (per.VCI_USER_ID   =  #{branchId,jdbcType=VARCHAR})
+			and   (ri.VPR_BRANCH_ID   =  #{branchId,jdbcType=VARCHAR})
 		</if>
 		<if test="perName!=null  and perName != ''">
 	     	and   (per.VCI_NAME  like  concat('%', #{perName,jdbcType=VARCHAR},'%'))