Commit adc120bc authored by liboyang's avatar liboyang

下发任务单

parent 57c01d9e
...@@ -19,6 +19,7 @@ public class UserInfo implements Serializable { ...@@ -19,6 +19,7 @@ public class UserInfo implements Serializable {
private String password; private String password;
private String salt; private String salt;
private byte state; private byte state;
private String workGroup;
@ManyToMany(fetch= FetchType.EAGER) @ManyToMany(fetch= FetchType.EAGER)
@JoinTable(name = "SysUserRole", joinColumns = { @JoinColumn(name = "userId") }, inverseJoinColumns ={@JoinColumn(name = "roleId") }) @JoinTable(name = "SysUserRole", joinColumns = { @JoinColumn(name = "userId") }, inverseJoinColumns ={@JoinColumn(name = "roleId") })
private List<SysRole> roleList; private List<SysRole> roleList;
...@@ -79,4 +80,11 @@ public class UserInfo implements Serializable { ...@@ -79,4 +80,11 @@ public class UserInfo implements Serializable {
this.roleList = roleList; this.roleList = roleList;
} }
public String getWorkGroup() {
return workGroup;
}
public void setWorkGroup(String workGroup) {
this.workGroup = workGroup;
}
} }
\ No newline at end of file
...@@ -24,6 +24,7 @@ public interface UserInfoMapper { ...@@ -24,6 +24,7 @@ public interface UserInfoMapper {
@Result(property = "password",column = "password"), @Result(property = "password",column = "password"),
@Result(property = "salt",column = "salt"), @Result(property = "salt",column = "salt"),
@Result(property = "state",column = "state"), @Result(property = "state",column = "state"),
@Result(property = "workGroup",column = "WORK_GROUP"),
@Result(property = "roleList",javaType = List.class,column ="id", @Result(property = "roleList",javaType = List.class,column ="id",
many = @Many(select = "com.yxproject.start.mapper.SysRoleMapper.selectRoleAndPermissionByUserId"))}) many = @Many(select = "com.yxproject.start.mapper.SysRoleMapper.selectRoleAndPermissionByUserId"))})
public UserInfo findUserByUsername(String username); public UserInfo findUserByUsername(String username);
......
...@@ -83,7 +83,15 @@ ...@@ -83,7 +83,15 @@
</table> </table>
<!-- /.table --> <!-- /.table -->
<div class="box-footer" style="text-align: right;"> <div class="box-footer" style="text-align: right;">
<button class="btn btn-primary" ng-click="goes()">下发任务单</button> <div class="pull-right" style="margin-left: 10px;">
<button class="btn btn-primary" ng-click="goes()">下发任务单</button>
</div>
<div class="pull-right">
<select class="form-control select2" id="group" style="border-radius:5px">
<option value="1">A组</option>
<option value="2">B组</option>
</select>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -157,6 +157,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p ...@@ -157,6 +157,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
var json={ var json={
process:$rootScope.loginData.roleList[0].process, process:$rootScope.loginData.roleList[0].process,
name:$rootScope.loginData.name, name:$rootScope.loginData.name,
workGroup:$("#group").val(),
taskIdList:arr, taskIdList:arr,
failedList:failedArr failedList:failedArr
} }
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
<th>证件数量</th> <th>证件数量</th>
<th>特殊证件数量</th> <th>特殊证件数量</th>
<th>废证数量</th> <th>废证数量</th>
<th>工作组</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -64,6 +65,8 @@ ...@@ -64,6 +65,8 @@
<td class="mailbox-attachment">{{task.specialCount}}</td> <td class="mailbox-attachment">{{task.specialCount}}</td>
<td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td> <td ng-if="task.faileCount!=0" class="mailbox-subject" style="color: red;">{{task.faileCount}}</td>
<td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td> <td ng-if="task.faileCount==0" class="mailbox-subject">{{task.faileCount}}</td>
<td class="mailbox-attachment text-red" ng-if="task.workGroup==1">A组</td>
<td class="mailbox-attachment text-green" ng-if="task.workGroup==2">B组</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td>
</tr> </tr>
<tr ng-if="task.taskId==taskId"> <tr ng-if="task.taskId==taskId">
...@@ -100,12 +103,6 @@ ...@@ -100,12 +103,6 @@
<div class="pull-right" style="margin-left: 10px;"> <div class="pull-right" style="margin-left: 10px;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button> <button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div> </div>
<div class="pull-right">
<select class="form-control select2" id="print" style="border-radius:5px">
<option value="1">一号打印机</option>
<option value="2">二号打印机</option>
</select>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -140,6 +137,7 @@ ...@@ -140,6 +137,7 @@
<th>核验数量</th> <th>核验数量</th>
<th>证件数量</th> <th>证件数量</th>
<th>特殊证件数量</th> <th>特殊证件数量</th>
<th>工作组</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -152,6 +150,7 @@ ...@@ -152,6 +150,7 @@
<td class="mailbox-subject">{{task.countyValidCount}}</td> <td class="mailbox-subject">{{task.countyValidCount}}</td>
<td class="mailbox-subject">{{task.countyValidCount-task.specialCount}}</td> <td class="mailbox-subject">{{task.countyValidCount-task.specialCount}}</td>
<td class="mailbox-attachment">{{task.specialCount}}</td> <td class="mailbox-attachment">{{task.specialCount}}</td>
<td class="mailbox-attachment">{{task.workGroup}}</td>
<td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td> <td class="mailbox-date"><a ng-click="getPoliceList(task.groupList,task.taskId)">组号列表</a></td>
</tr> </tr>
<tr ng-if="task.taskId==taskId"> <tr ng-if="task.taskId==taskId">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment