提交 010c69d8 编写于 作者: M megagao

删除了文件

上级 f4a0217e
......@@ -19,8 +19,6 @@ public class Custom {
private Integer status;
private String managerTel;
private String note;
public String getCustomId() {
......@@ -95,14 +93,6 @@ public class Custom {
this.status = status;
}
public String getManagerTel() {
return managerTel;
}
public void setManagerTel(String managerTel) {
this.managerTel = managerTel == null ? null : managerTel.trim();
}
public String getNote() {
return note;
}
......
......@@ -724,76 +724,6 @@ public class CustomExample {
return (Criteria) this;
}
public Criteria andManagerTelIsNull() {
addCriterion("manager_tel is null");
return (Criteria) this;
}
public Criteria andManagerTelIsNotNull() {
addCriterion("manager_tel is not null");
return (Criteria) this;
}
public Criteria andManagerTelEqualTo(String value) {
addCriterion("manager_tel =", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelNotEqualTo(String value) {
addCriterion("manager_tel <>", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelGreaterThan(String value) {
addCriterion("manager_tel >", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelGreaterThanOrEqualTo(String value) {
addCriterion("manager_tel >=", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelLessThan(String value) {
addCriterion("manager_tel <", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelLessThanOrEqualTo(String value) {
addCriterion("manager_tel <=", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelLike(String value) {
addCriterion("manager_tel like", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelNotLike(String value) {
addCriterion("manager_tel not like", value, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelIn(List<String> values) {
addCriterion("manager_tel in", values, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelNotIn(List<String> values) {
addCriterion("manager_tel not in", values, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelBetween(String value1, String value2) {
addCriterion("manager_tel between", value1, value2, "managerTel");
return (Criteria) this;
}
public Criteria andManagerTelNotBetween(String value1, String value2) {
addCriterion("manager_tel not between", value1, value2, "managerTel");
return (Criteria) this;
}
public Criteria andNoteIsNull() {
addCriterion("note is null");
return (Criteria) this;
......
......@@ -11,7 +11,6 @@
<result column="owner_name" property="ownerName" jdbcType="VARCHAR" />
<result column="owner_tel" property="ownerTel" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="INTEGER" />
<result column="manager_tel" property="managerTel" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
......@@ -40,6 +39,7 @@
</update>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
......@@ -100,7 +100,7 @@
</sql>
<sql id="Base_Column_List" >
custom_id, custom_name, full_name, address, fax, email, owner_name, owner_tel, status,
manager_tel, note
note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.CustomExample" >
select
......@@ -136,11 +136,11 @@
insert into custom (custom_id, custom_name, full_name,
address, fax, email,
owner_name, owner_tel, status,
manager_tel, note)
note)
values (#{customId,jdbcType=VARCHAR}, #{customName,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR},
#{ownerName,jdbcType=VARCHAR}, #{ownerTel,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{managerTel,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR})
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Custom" >
insert into custom
......@@ -172,9 +172,6 @@
<if test="status != null" >
status,
</if>
<if test="managerTel != null" >
manager_tel,
</if>
<if test="note != null" >
note,
</if>
......@@ -207,9 +204,6 @@
<if test="status != null" >
#{status,jdbcType=INTEGER},
</if>
<if test="managerTel != null" >
#{managerTel,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
......@@ -251,9 +245,6 @@
<if test="record.status != null" >
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.managerTel != null" >
manager_tel = #{record.managerTel,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
......@@ -273,7 +264,6 @@
owner_name = #{record.ownerName,jdbcType=VARCHAR},
owner_tel = #{record.ownerTel,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
manager_tel = #{record.managerTel,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
......@@ -306,9 +296,6 @@
<if test="status != null" >
status = #{status,jdbcType=INTEGER},
</if>
<if test="managerTel != null" >
manager_tel = #{managerTel,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
......@@ -325,7 +312,6 @@
owner_name = #{ownerName,jdbcType=VARCHAR},
owner_tel = #{ownerTel,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
manager_tel = #{managerTel,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where custom_id = #{customId,jdbcType=VARCHAR}
</update>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<table class="easyui-datagrid" id="itemList" title="商品列表"
data-options="singleSelect:false,collapsible:true,pagination:true,url:'/item/list',method:'get',pageSize:30,toolbar:toolbar">
<table class="easyui-datagrid" id="customList" title="订单列表"
data-options="singleSelect:false,collapsible:true,pagination:true,url:'custom/list',method:'get',pageSize:30,toolbar:toolbar">
<thead>
<tr>
<th data-options="field:'ck',checkbox:true"></th>
<th data-options="field:'id',width:60">商品ID</th>
<th data-options="field:'title',width:200">商品标题</th>
<th data-options="field:'cid',width:100">叶子类目</th>
<th data-options="field:'sellPoint',width:100">卖点</th>
<th data-options="field:'price',width:70,align:'right',formatter:TAOTAO.formatPrice">价格</th>
<th data-options="field:'num',width:70,align:'right'">库存数量</th>
<th data-options="field:'barcode',width:100">条形码</th>
<th data-options="field:'status',width:60,align:'center',formatter:TAOTAO.formatItemStatus">状态</th>
<th data-options="field:'created',width:130,align:'center',formatter:TAOTAO.formatDateTime">创建日期</th>
<th data-options="field:'updated',width:130,align:'center',formatter:TAOTAO.formatDateTime">更新日期</th>
<th data-options="field:'customId',width:100">客户编号</th>
<th data-options="field:'customName',width:100">客户名称</th>
<th data-options="field:'fullName',width:200">客户全称</th>
<th data-options="field:'address',width:100">地址</th>
<th data-options="field:'fax',width:100,align:'right'">传真</th>
<th data-options="field:'email',width:100,align:'right'">邮箱</th>
<th data-options="field:'ownerName',width:60,align:'center'">经理姓名</th>
<th data-options="field:'ownerTel',width:100,align:'center'">联系电话</th>
<th data-options="field:'status',width:60,align:'center',formatter:TAOTAO.formatCustomStatus">客户状态</th>
<th data-options="field:'note',width:130,align:'center'">备注</th>
</tr>
</thead>
</table>
<div id="itemEditWindow" class="easyui-window" title="编辑商品" data-options="modal:true,closed:true,iconCls:'icon-save',href:'/rest/page/item-edit'" style="width:80%;height:80%;padding:10px;">
<div id="customEditWindow" class="easyui-window" title="编辑订单" data-options="modal:true,closed:true,iconCls:'icon-save',href:'custom/edit'" style="width:65%;height:80%;padding:10px;">
</div>
<script>
function getSelectionsIds(){
var itemList = $("#itemList");
var sels = itemList.datagrid("getSelections");
var customList = $("#customList");
var sels = customList.datagrid("getSelections");
var ids = [];
for(var i in sels){
ids.push(sels[i].id);
ids.push(sels[i].customId);
}
ids = ids.join(",");
ids = ids.join(",");
return ids;
}
......@@ -36,72 +37,29 @@
text:'新增',
iconCls:'icon-add',
handler:function(){
$(".tree-title:contains('新增商品')").parent().click();
$(".tree-title:contains('新增客户')").parent().click();
}
},{
text:'编辑',
iconCls:'icon-edit',
handler:function(){
var ids = getSelectionsIds();
if(ids.length == 0){
$.messager.alert('提示','必须选择一个商品才能编辑!');
$.messager.alert('提示','必须选择一个客户才能编辑!');
return ;
}
if(ids.indexOf(',') > 0){
$.messager.alert('提示','只能选择一个商品!');
$.messager.alert('提示','只能选择一个客户!');
return ;
}
$("#itemEditWindow").window({
$("#customEditWindow").window({
onLoad :function(){
//回显数据
var data = $("#itemList").datagrid("getSelections")[0];
data.priceView = TAOTAO.formatPrice(data.price);
$("#itemeEditForm").form("load",data);
// 加载商品描述
$.getJSON('/rest/item/query/item/desc/'+data.id,function(_data){
if(_data.status == 200){
//UM.getEditor('itemeEditDescEditor').setContent(_data.data.itemDesc, false);
itemEditEditor.html(_data.data.itemDesc);
}
});
var data = $("#customList").datagrid("getSelections")[0];
$("#customEditForm").form("load", data);
//加载商品规格
$.getJSON('/rest/item/param/item/query/'+data.id,function(_data){
if(_data && _data.status == 200 && _data.data && _data.data.paramData){
$("#itemeEditForm .params").show();
$("#itemeEditForm [name=itemParams]").val(_data.data.paramData);
$("#itemeEditForm [name=itemParamId]").val(_data.data.id);
//回显商品规格
var paramData = JSON.parse(_data.data.paramData);
var html = "<ul>";
for(var i in paramData){
var pd = paramData[i];
html+="<li><table>";
html+="<tr><td colspan=\"2\" class=\"group\">"+pd.group+"</td></tr>";
for(var j in pd.params){
var ps = pd.params[j];
html+="<tr><td class=\"param\"><span>"+ps.k+"</span>: </td><td><input autocomplete=\"off\" type=\"text\" value='"+ps.v+"'/></td></tr>";
}
html+="</li></table>";
}
html+= "</ul>";
$("#itemeEditForm .params td").eq(1).html(html);
}
});
TAOTAO.init({
"pics" : data.image,
"cid" : data.cid,
fun:function(node){
TAOTAO.changeItemParam(node, "itemeEditForm");
}
});
}
}).window("open");
}
......@@ -111,16 +69,16 @@
handler:function(){
var ids = getSelectionsIds();
if(ids.length == 0){
$.messager.alert('提示','未选中商品!');
$.messager.alert('提示','未选中客户!');
return ;
}
$.messager.confirm('确认','确定删除ID为 '+ids+'商品吗?',function(r){
$.messager.confirm('确认','确定删除ID为 '+ids+'客户吗?',function(r){
if (r){
var params = {"ids":ids};
$.post("/rest/item/delete",params, function(data){
$.post("custom/delete_batch",params, function(data){
if(data.status == 200){
$.messager.alert('提示','删除商品成功!',undefined,function(){
$("#itemList").datagrid("reload");
$.messager.alert('提示','删除客户成功!',undefined,function(){
$("#customList").datagrid("reload");
});
}
});
......@@ -133,16 +91,16 @@
handler:function(){
var ids = getSelectionsIds();
if(ids.length == 0){
$.messager.alert('提示','未选中商品!');
$.messager.alert('提示','未选中客户!');
return ;
}
$.messager.confirm('确认','确定下架ID为 '+ids+'商品吗?',function(r){
$.messager.confirm('确认','确定下架ID为 '+ids+'客户吗?',function(r){
if (r){
var params = {"ids":ids};
$.post("/rest/item/instock",params, function(data){
$.post("/rest/custom/instock",params, function(data){
if(data.status == 200){
$.messager.alert('提示','下架商品成功!',undefined,function(){
$("#itemList").datagrid("reload");
$.messager.alert('提示','下架客户成功!',undefined,function(){
$("#customList").datagrid("reload");
});
}
});
......@@ -150,26 +108,10 @@
});
}
},{
text:'上架',
iconCls:'icon-remove',
text:'刷新',
iconCls:'icon-reload',
handler:function(){
var ids = getSelectionsIds();
if(ids.length == 0){
$.messager.alert('提示','未选中商品!');
return ;
}
$.messager.confirm('确认','确定上架ID为 '+ids+' 的商品吗?',function(r){
if (r){
var params = {"ids":ids};
$.post("/rest/item/reshelf",params, function(data){
if(data.status == 200){
$.messager.alert('提示','上架商品成功!',undefined,function(){
$("#itemList").datagrid("reload");
});
}
});
}
});
$("#customList").datagrid("reload");
}
}];
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册