|
|
@@ -132,33 +132,33 @@ public class AsyncUtils {
|
|
|
* @param roleType
|
|
|
*/
|
|
|
public void updateListExamineName(Integer type, String depId, String roleType) {
|
|
|
- StringBuffer str=new StringBuffer();
|
|
|
String names="";
|
|
|
-
|
|
|
- if (str.length()>1)names=str.substring(0,str.length()-1);
|
|
|
if (type==1){
|
|
|
- getNames(depId, roleType, str);
|
|
|
+ names=getNames(depId, roleType);
|
|
|
tOrderNewMapper.updateExamineName(ProcessStatus.YPYXGLY.getCode(),depId,null,names);
|
|
|
newOrderChangeMapper.updateExamineName(OrderChangeProcess.YXGLY.getCode(),depId,null,names);
|
|
|
tOrderInvoiceMapper.updateExamineName(1,depId,null,names);
|
|
|
}else if (type==2){
|
|
|
tOrderInvoiceMapper.updateListExamineName(type,depId,roleType);
|
|
|
}else if (type==3){
|
|
|
- getNames(depId, roleType, str);
|
|
|
+ names=getNames(depId, roleType);
|
|
|
newOrderChangeMapper.updateExamineName(OrderChangeProcess.CWZJ.getCode(),depId,null,names);
|
|
|
}else if (type==4){
|
|
|
- getNames(depId, roleType, str);
|
|
|
+ names=getNames(depId, roleType);
|
|
|
tOrderNewMapper.updateExamineName(ProcessStatus.YPZXSGLY.getCode(),depId,null,names);
|
|
|
newOrderChangeMapper.updateExamineName(OrderChangeProcess.JSZJ.getCode(),depId,null,names);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void getNames(String depId, String roleType, StringBuffer str) {
|
|
|
+ private String getNames(String depId, String roleType) {
|
|
|
+ StringBuffer str=new StringBuffer();
|
|
|
List<Admin> admins = adminMapper.selectAdminByRoleType(roleType);
|
|
|
for (Admin admin : admins) {
|
|
|
if (admin.getDepartmentId().equals(depId)) {
|
|
|
str = str.append(admin.getName()).append(",");
|
|
|
}
|
|
|
}
|
|
|
+ if (str.length()>1)return str.substring(0,str.length()-1);
|
|
|
+ else return "";
|
|
|
}
|
|
|
}
|