MchPriceBiz.java
1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.cjs.cms.biz.ration;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cjs.cms.dao.ration.MchPriceDao;
import com.cjs.cms.util.lang.StringUtil;
/**
* 开盘价
* @author tongxiaochuan
*
*/
@Service
public class MchPriceBiz {
@Autowired
private MchPriceDao mchPriceDao;
/**
* 修改开盘价
* @param params
* @return
*/
public Map<String, Object> lastPriceChange(Map<String, Object> params) {
Map<String, Object> outmap = new HashMap<String, Object>();
if (StringUtil.isBlank(params.get("lastPrice"))) {
outmap.put("resultCode", "0");
outmap.put("resultMsg", "收盘价不能为空");
return outmap;
}
int result = mchPriceDao.updateLastPrice(params);
if (result > 0) {
outmap.put("resultCode", "1");
} else {
outmap.put("resultCode", "0");
outmap.put("resultMsg", "修改失败");
}
return outmap;
}
}