悬赏园豆:15
[已关闭问题]
<DIV class=cnblogs_code><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><SPAN style="COLOR: #000000">select * from WorkFlowDetail</SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #000000"></SPAN> </DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #000000">FlowStepID WorkFlowID OrderID Transactor ConditionCode FlowName Days OverTimeExc<BR></SPAN><SPAN style="COLOR: #008080">--</SPAN><SPAN style="COLOR: #008080">--------- ----------- ----------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- ----------- -----------</SPAN><SPAN style="COLOR: #008080"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">28</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">9</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> LoginName </SPAN><SPAN style="COLOR: #808080">in</SPAN><SPAN style="COLOR: #000000"> (admin,aa,hite) test </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">9</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">29</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">10</SPAN><SPAN style="COLOR: #000000"> 部门主管 </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> test123 </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">5</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">30</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">11</SPAN><SPAN style="COLOR: #000000"> 分管领导 </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> test234 </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">5</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">31</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">12</SPAN><SPAN style="COLOR: #000000"> 机构领导 </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> test345 </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">4</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">32</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">13</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> RoleName </SPAN><SPAN style="COLOR: #808080">in</SPAN><SPAN style="COLOR: #000000"> (test,管理员) test456 </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">5</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">33</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">14</SPAN><SPAN style="COLOR: #000000"> 机构领导 </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> test567 </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">4</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">34</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">15</SPAN><SPAN style="COLOR: #000000"> 分管领导 </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> test678 </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">3</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">52</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">12</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> ChineseName </SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">aa</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000"> cc </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">4</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">53</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">12</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">NULL</SPAN><SPAN style="COLOR: #000000"> RoleName </SPAN><SPAN style="COLOR: #808080">in</SPAN><SPAN style="COLOR: #000000"> (test) tt </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">0</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">4</SPAN><SPAN style="COLOR: #000000"><BR></SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #000000">Transactor和ConditionCode为交叉数据,都表示的是执行人!现在要做一处理,将执行人转换成具体的人员ID,要怎么实现?</SPAN></DIV>
<DIV class=cnblogs_code><SPAN style="COLOR: #000000">机构领导,分管领导和<SPAN style="COLOR: #000000">部门领导分别对应不同的表,后面的也分别对应不同的表:如果是机构领导,对应的人员ID就是机构表里相应的人员ID,此sql如何实现?请教!</SPAN></DIV></SPAN>