Browse Source

离职转交新增专利提醒转交

anderx 6 years ago
parent
commit
a1cfcb6904

+ 2 - 0
src/main/java/com/goafanti/common/dao/PatentNewMapper.java

@@ -76,4 +76,6 @@ public interface PatentNewMapper {
 	List<PatentNew> AllselectStartPatentNew();
 	
 	List<PatentNew> AllselectEndPatentNew();
+
+	void updateAdmin(@Param("aid")String aid, @Param("transferId")String transferId);
 }

+ 5 - 0
src/main/java/com/goafanti/common/mapper/PatentNewMapper.xml

@@ -553,4 +553,9 @@
     <include refid="Base_Column_List" />
     from patent_new where status =1
     </select>
+    
+    <update id="updateAdmin">
+    update patent_new set aid= #{transferId}
+	where aid= #{aid} 
+    </update>
 </mapper>

+ 5 - 1
src/main/java/com/goafanti/permission/service/impl/NewRoleServiceImpl.java

@@ -16,6 +16,7 @@ import org.springframework.stereotype.Service;
 import com.goafanti.common.bo.Error;
 import com.goafanti.common.dao.ContractTaskLogMapper;
 import com.goafanti.common.dao.OrganizationContactBookMapper;
+import com.goafanti.common.dao.PatentNewMapper;
 import com.goafanti.common.dao.RoleMapper;
 import com.goafanti.common.dao.RolePermissionMapper;
 import com.goafanti.common.dao.RoleResourcesMapper;
@@ -55,6 +56,8 @@ public class NewRoleServiceImpl extends BaseMybatisDao<RoleMapper> implements Ne
 	@Autowired
 	UserBusinessMapper		userBusinessMapper;
 	@Autowired
+	PatentNewMapper			patentNewMapper;
+	@Autowired
 	OrganizationContactBookMapper	organizationContactBookMapper;
 	@Autowired
 	TOrderTaskMapper	tOrderTaskMapper;
@@ -198,7 +201,8 @@ public class NewRoleServiceImpl extends BaseMybatisDao<RoleMapper> implements Ne
 				userMapper.updateDimissionTransfer(aid,transferId);
 			}
 			if (s==roleResources.QDYW.getCode()) {
-				tOrderNewMapper.updateSalesmanId(aid,transferId);
+				tOrderNewMapper.updateSalesmanId(aid, transferId);
+				patentNewMapper.updateAdmin(aid,transferId);
 				roleResourcesMapper.updateLockRelease("1",aid,transferId);//将业务锁转给指定人
 			}
 			if (s==roleResources.XMRW.getCode()) {