删除接口-商品

master
erzhongxmu 2023-05-04 15:27:03 +08:00
parent e275a8a27c
commit 1751c6d2a5
2 changed files with 0 additions and 77 deletions

View File

@ -265,34 +265,7 @@ public class MdGoodsController extends BaseController {
return j;
}
/**
*
*
* @return
*/
@RequestMapping(params = "doGet")
@ResponseBody
public AjaxJson dogetfromother(String formDate,String othercode, HttpServletRequest request) {
String message = null;
AjaxJson j = new AjaxJson();
message = "商品信息读取成功";
try {
if ("DSC".equals(ResourceUtil.getConfigByName("interfacetype"))){
dscUtil.updateGoodsFromDsc();
}
systemService.addLog(message, Globals.Log_Type_UPDATE,
Globals.Log_Leavel_INFO);
} catch (Exception e) {
e.printStackTrace();
message = "商品信息读取失败";
throw new BusinessException(e.getMessage());
}
j.setMsg(message);
return j;
}
/**
*
@ -526,14 +499,7 @@ public class MdGoodsController extends BaseController {
if(!StringUtil.isEmpty(searchstr)) {
hql=hql+" and (shpBianMa = '" + searchstr + "'";
hql=hql+" or shpTiaoMa = '" + searchstr + "')";
}
// if(!StringUtil.isEmpty(searchstr2)) {
// hql=hql+" and (shpTiaoMa = '" + searchstr2 + "'";
// hql=hql+" or shpBianMa = '" + searchstr2 + "')";
//
// }
List<MdGoodsEntity> listMdGoodss = mdGoodsService.findHql(hql);
D0.setOK(true);
List<MdGoodsEntity> result = new ArrayList<MdGoodsEntity>();
@ -545,9 +511,6 @@ public class MdGoodsController extends BaseController {
break;
}
}
// t.setShpYanSe(searchstrin1);
// t.setPpTuPian(searchstrin2);
// t.setJjZhongBi(searchstrin3);
result.add(t);
}
@ -569,14 +532,6 @@ public class MdGoodsController extends BaseController {
@ResponseBody
public ResponseEntity<?> create(@RequestParam String mdGoodsstr,
UriComponentsBuilder uriBuilder) {
// 调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
// Set<ConstraintViolation<MdGoodsEntity>> failures = validator
// .validate(mdGoods);
// if (!failures.isEmpty()) {
// return new ResponseEntity(
// BeanValidators.extractPropertyAndMessage(failures),
// HttpStatus.BAD_REQUEST);
// }
ResultDO D0 = new ResultDO();
MdGoodsEntity mdGoods = (MdGoodsEntity)JSONHelper.json2Object(mdGoodsstr,MdGoodsEntity.class);

View File

@ -67,16 +67,10 @@
<t:dgToolBar title="批量删除" icon="icon-remove" url="mdGoodsController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" height="720" width="740" icon="icon-search" url="mdGoodsController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
<t:dgToolBar operationCode="uasimpgoods" title="第三方系统导入" icon="icon-put" funname="otherimp"></t:dgToolBar>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
</t:datagrid>
<div name="searchColums1" style="float: left; padding-left: 0px;padding-top: 5px;">
<%--<input type="text" name="batchbin" style="width: 100px; height: 30px;">--%>
日期:<input type="text" name="batchdate" class="form-control" onClick="WdatePicker()" style="width: 100px; height: 30px;">
商品编码:<input type="text" name="othercode" class="form-control" style="width: 100px; height: 30px;">
</div>
</div>
</div>
<script src = "webpage/com/zzjee/md/mdGoodsList.js"></script>
@ -84,32 +78,6 @@
$(document).ready(function(){
// $('#mdGoodsList').datagrid('reload',{});
});
function otherimp() {
var batchdate;
batchdate = $('input[name="batchdate"]').attr("value");
othercode = $('input[name="othercode"]').attr("value");
var url = "mdGoodsController.do?doGet&formDate="+batchdate+"&othercode="+othercode;
$.ajax({
async : true,
cache : false,
type : 'POST',
url : url,// 请求的action路径
error : function() {// 请求失败处理函数
},
success : function(data) {
var d = $.parseJSON(data);
if (d.success) {
}
}
});
tip("获取成功");
$('#mdGoodsList').datagrid('reload',{});
}
function doprint(id){
var url = "mdGoodsController.do?doPrintmdgoods&id="+id;
createdetailwindow(" 商品标签", url, 400, 300);