1.看板bug修复

2.本年度加工统计取消g175k-6、7显示,增加数据修正逻辑,当统计完工百分比超过100时,设置值为100
master
董哲奇 1 week ago
parent 25288a3136
commit a854f6c04f

@ -10,6 +10,7 @@ import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.math.BigDecimal;
import java.math.RoundingMode;
@ -29,14 +30,22 @@ public class KanBanController {
/**
*
*/
@RequestMapping("/ndwcl")
@RequestMapping("ndwcl")
public Object getndWcl() {
String lastUpdateDate= (String) redisTemplate.opsForValue().get(key+"mbdcUpateTime");
DateTime date = DateUtil.date();
String today=date.toString("yyyyMMdd");
if (today.equals(lastUpdateDate)){
return "redirect:/YdjhKban/getMbdc";
}else{
return "redirect:/kban/getndWclOther";
}
}
@RequestMapping("getndWclOther")
@ResponseBody
public Object getndWclOther() {
DateTime date = DateUtil.date();
String from = DateUtil.beginOfYear(date).toString("yyyy/MM/dd");
String to = DateUtil.offsetDay(date,1).toString("yyyy/MM/dd");
AtomicInteger maxVersion = xbjhService.getMaxVersion();

Loading…
Cancel
Save