work mark

<detection name="tracking" open="1" shape="rect" rect="(608,160,102,315)" resize="(320,240)" thresh="0.35">
<drawing name="outline" open="1" color="0xffffff" />
<drawing name="filling" open="1" brightness="50" />
</detection>

 

 

mount -t nfs 192.168.1.3:/volume1/office/media/ws /nas.ws

 

 

 

bool isdeadline()
{
time_t timep;
struct tm *p;
time(&timep);
p = localtime(&timep); /*取得当地时间*/
if (p->tm_mon+1 > 8 || p->tm_year+1900 > 2018)
return true;
else
return false;
if ((p->tm_year + 1900==2018 && p->tm_mon + 1 < 5) || p->tm_year + 1900 < 2018)
return true;
}

 

转载于:https://www.cnblogs.com/luoyinjie/p/9067613.html

好的,你的问题是如何实现一个SpringMVC项目中的控制器WorkController,其中包含处理器方法workMark和getTotal,实现打卡员工信息存储和获取总打卡数量的功能,是吗? 以下是实现该功能的代码: ```java import java.util.HashMap; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller @RequestMapping("/work") public class WorkController { @RequestMapping("/mark") @ResponseBody public Work workMark(@RequestBody Work work) { // 将work存入DBUtil中的markInfo集合中,存入key为“work”,存入value为此work对象 DBUtil.markInfo.put("work", work); // 获取DBUtil中markInfo集合存的打卡总数,对其加1后,再次存入markInfo集合 int totalCount = (int) DBUtil.markInfo.get("totalCount"); DBUtil.markInfo.put("totalCount", totalCount + 1); // 方法返回work return work; } @RequestMapping("/total") @ResponseBody public Map<String, Object> getTotal() { // 返回DBUtil中的markInfo集合,此集合中保存了当前打卡员工信息和目前总的打卡数量 return DBUtil.markInfo; } } class DBUtil { // markInfo集合保存了当前打卡员工信息和目前总的打卡数量 public static Map<String, Object> markInfo = new HashMap<>(); static { markInfo.put("totalCount", 0); } } class Work { private int id; private String name; public Work() {} public Work(int id, String name) { this.id = id; this.name = name; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } ``` 其中,workMark方法使用@RequestBody注解获取前端传来的JSON格式的数据,然后将其存入DBUtil中的markInfo集合中,并对打卡总数加1;getTotal方法直接返回DBUtil中的markInfo集合,以JSON格式返回。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值