1.增加作业计划完工量统计

master
董哲奇 2 months ago
parent 3ac40fea5d
commit cc5dc59bdd

@ -19,9 +19,7 @@ import com.dsic.gj_erp.service.sy.impl.SyMsgService;
import com.dsic.gj_erp.service.zyjh.ZyjhService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.io.File;
import java.util.*;
@ -52,6 +50,11 @@ public class KbanController {
@Value("${pdfUri}")
private String pdfUri;
@PostMapping("zyjhwcl")
public ResultBean<?> (@RequestBody Map<String, Object> map) {
return new ResultBean<>(kbanService.(map));
}
/**
*
*/

@ -10,6 +10,9 @@ import java.util.Map;
@Mapper
public interface KbanMapper {
//按日或月统计作业计划完成量
List<Map<String, Object>> (Map<String, Object> map);
List<Map<String, Object>> getProjects();
//线表重量

@ -26,6 +26,10 @@ public class KbanService {
@Value("${xbjh-path}")
String xbjhPath;
public List<Map<String,Object>> (Map<String, Object> map){
return kbanMapper.(map);
}
public List<Device> getDeviceStatus(){
return deviceMapper.getDeviceStatus();
}

@ -266,4 +266,20 @@
WHERE
jssj BETWEEN #{from} and #{to} and lx='b' and ylbs='N'
</select>
<select id="作业计划完成量" resultType="java.util.Map">
SELECT
dc_ch,count(1) total,ROUND(SUM(bclqzl/1000),2) bclqzl,ROUND(sum(bcshzl/1000),2) bcshzl
from dm_ydjh
WHERE
cast(qgfkrq as date) BETWEEN #{from} and #{to}
<if test="ylbs!=null and ylbs!=''">
and ylbs=#{ylbs}
</if>
<if test="kw!=null and kw!=''">
and kw=#{kw}
</if>
group by dc_ch
order by dc_ch
</select>
</mapper>

Loading…
Cancel
Save