parent
92a9e2a1ca
commit
fde8a601ea
@ -0,0 +1,31 @@
|
||||
package au.com.royalpay.payment.manage.mappers.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
|
||||
import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
|
||||
|
||||
/**
|
||||
* Created by yixian on 2016-06-29.
|
||||
*/
|
||||
@AutoMapper(tablename = "sys_customer_service", pkName = "manager_id")
|
||||
public interface SysCustomerServiceMapper {
|
||||
List<JSONObject> findOnline();
|
||||
|
||||
@AutoSql(type = SqlType.SELECT)
|
||||
JSONObject findByManagerId(@Param("manager_id")String manager_id);
|
||||
|
||||
@AutoSql(type = SqlType.INSERT)
|
||||
void save(JSONObject record);
|
||||
|
||||
@AutoSql(type = SqlType.UPDATE)
|
||||
void update(JSONObject record);
|
||||
|
||||
void onoff(@Param("managerId") String managerId, @Param("status") int status);
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="au.com.royalpay.payment.manage.mappers.system.SysCustomerServiceMapper">
|
||||
<select id="findOnline" resultType="com.alibaba.fastjson.JSONObject">
|
||||
select user_id from sys_customer_service
|
||||
where `status` = 1
|
||||
</select>
|
||||
|
||||
<update id="onoff">
|
||||
udpate sys_customer_servie
|
||||
set status = #{status}
|
||||
where manager_id = #{managerId}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,52 @@
|
||||
<section class="content-header">
|
||||
<h1>Mail Not Subscribe</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a ui-sref="^"><i class="fa fa-cog"></i> System Config</a>
|
||||
</li>
|
||||
<li>Mail Not Subscribe</li>
|
||||
</ol>
|
||||
</section>
|
||||
<div class="content">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="box-solid">
|
||||
<!--<div class="box box-warning">-->
|
||||
<!--<div class="box-header">-->
|
||||
<!--<div class="form-inline">-->
|
||||
<!--<div class="form-group">-->
|
||||
<!--<input class="form-control" placeholder="Client Moniker" ng-model="params.client_moniker">-->
|
||||
<!--</div>-->
|
||||
<!--<div class="form-group">-->
|
||||
<!--<input class="form-control" placeholder="Mail Address" ng-model="params.address">-->
|
||||
<!--</div>-->
|
||||
<!--<button class="btn btn-success" ng-click="loadUnSubs(1)"><i-->
|
||||
<!--class="fa fa-search"></i> Search</button>-->
|
||||
<!--<button class="btn btn-success pull-right" ng-click="addUnSub()" ng-click="addUnSubs()">Add</button>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<div class="box">
|
||||
<div class="box-body no-padding table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Display Name</th>
|
||||
<th>Operation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="servant in servants">
|
||||
<td ng-bind="servant.display_name"></td>
|
||||
<td>
|
||||
<input type="checkbox" ng-click="onoff(servant)" ng-model="servant.onoff">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in new issue