xubh 4 lat temu
rodzic
commit
c85227fb68

+ 2 - 1
src/main/java/com/minpay/shouhuo/deliveryaction/DeliveryAction.java

@@ -649,8 +649,9 @@ public class DeliveryAction implements IMINAction{
 		/**校验用户是否是商户的补货员*/
 		VmPersonRoleInfExample vmPersonRoleInfExample = new VmPersonRoleInfExample();
 		vmPersonRoleInfExample.createCriteria().andBranchIdEqualTo(branchid)
-								.andStateEqualTo("00").andPersonIdEqualTo(personId).andRoleEqualTo("00");
+								.andStateEqualTo("00").andPersonIdEqualTo(personId).andRoleEqualTo("01");
 		List<VmPersonRoleInf> vmPersonRoleInfList = Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmPersonRoleInfMapper.class).selectByExample(vmPersonRoleInfExample);
+		System.out.println("vmPersonRoleInfList数量:" + vmPersonRoleInfList.size());
 		if(vmPersonRoleInfList.size() != 1){
 			throw new MINBusinessException("权限不足!");
 		}

+ 0 - 3
src/main/resources/com/minpay/db/table/own/mapper/DeliveryMapper.xml

@@ -81,8 +81,5 @@
 			<if test="deliveryNo != null and deliveryNo != ''"> 
 		    	and d.VDI_DELIVERY_ID = #{deliveryNo,jdbcType=VARCHAR}
 			</if>
-			<if test="orderNo != null and orderNo != ''"> 
-		    	and oD.VOD_ORDER_ID = #{orderNo,jdbcType=VARCHAR}
-			</if>
 	</select>
 </mapper>