|
|
|
@ -27,6 +27,7 @@ import com.op.mes.domain.dto.LineChartDto;
|
|
|
|
|
import com.op.mes.domain.dto.SysFactoryDto;
|
|
|
|
|
import com.op.mes.domain.vo.DynamicColumnVo;
|
|
|
|
|
import com.op.mes.domain.vo.MesDailyReportVo;
|
|
|
|
|
import com.op.mes.domain.vo.MesMonthReportVo;
|
|
|
|
|
import com.op.system.api.domain.DataSourcePropertyDTO;
|
|
|
|
|
import com.op.system.api.domain.SysUser;
|
|
|
|
|
import com.op.system.api.domain.device.EquEquipmentDTO;
|
|
|
|
@ -266,7 +267,6 @@ public class MesReportWorkController extends BaseController {
|
|
|
|
|
String end = mesDailyReportVo.getProductDateEnd();
|
|
|
|
|
ExcelUtil<MesDailyReportVo> util = new ExcelUtil<>(MesDailyReportVo.class);
|
|
|
|
|
util.exportExcel(response, list, start+"至"+end+"生产日报表");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -599,6 +599,42 @@ public class MesReportWorkController extends BaseController {
|
|
|
|
|
return AjaxResult.error("报工失败:"+r.getMsg());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 黑蚊香车间每日生产报表
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:dailyProductionSut:list")
|
|
|
|
|
@GetMapping("/getdailyProductionSut")
|
|
|
|
|
public AjaxResult getdailyProductionSut(MesDailyReportVo mesDailyReportVo) {
|
|
|
|
|
|
|
|
|
|
List<MesDailyReportVo> list = mesReportWorkService.getDailyReportNew(mesDailyReportVo);
|
|
|
|
|
return success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 黑蚊香车间月度汇总表
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:monthProductionSut:list")
|
|
|
|
|
@GetMapping("/getmonthProductionSut")
|
|
|
|
|
public AjaxResult getmonthProductionSut(MesMonthReportVo mesMonthReportVo) {
|
|
|
|
|
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
Date today = mesMonthReportVo.getMonthValue();
|
|
|
|
|
// 设置日历到本月1号
|
|
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
|
|
calendar.setTime(today);
|
|
|
|
|
calendar.set(Calendar.DAY_OF_MONTH, 1);
|
|
|
|
|
String beginTime = simpleDateFormat.format(mesMonthReportVo.getMonthValue());
|
|
|
|
|
// 设置日历到下个月1号
|
|
|
|
|
calendar.add(Calendar.MONTH, 1);
|
|
|
|
|
String endTime = simpleDateFormat.format(calendar.getTime());
|
|
|
|
|
Map parammap =new HashMap();
|
|
|
|
|
parammap.put("beginTime",beginTime);
|
|
|
|
|
parammap.put("endTime",endTime);
|
|
|
|
|
mesMonthReportVo.setParams(parammap);
|
|
|
|
|
List<Map> mapList = mesReportWorkService.getmonthProductionSut(mesMonthReportVo);
|
|
|
|
|
return success(mapList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|