蔡德晨 5 năm trước cách đây
mục cha
commit
540e1f6aa2

+ 8 - 7
src/main/java/com/jeeplus/modules/sg/overheadline/service/OverheadLineService.java

@@ -71,23 +71,24 @@ public class OverheadLineService {
    }
    }
 
 
 
 
-    @Transactional
+    @Transactional(readOnly = false)
     public void updataDate(JkxlDetailFee jkxlDetailFee){
     public void updataDate(JkxlDetailFee jkxlDetailFee){
         overheadLineMapper.updateDate(jkxlDetailFee);
         overheadLineMapper.updateDate(jkxlDetailFee);
     }
     }
 
 
-    @Transactional
+    @Transactional(readOnly = false)
    public void saveProject(WbsProject wbsProject){
    public void saveProject(WbsProject wbsProject){
        overheadLineMapper.saveProject(wbsProject);
        overheadLineMapper.saveProject(wbsProject);
    }
    }
 
 
+    @Transactional(readOnly = false)
    public void save(MultipartFile file,double sl,String name,String id) throws IOException, InvalidFormatException {
    public void save(MultipartFile file,double sl,String name,String id) throws IOException, InvalidFormatException {
-       WbsProject wbsProject = new WbsProject();
-       wbsProject.setId(id);
-       wbsProject.setName(name);
-       wbsProject.setCreateDate(new Date());
+//       WbsProject wbsProject = new WbsProject();
+//       wbsProject.setId(id);
+//       wbsProject.setName(name);
+//       wbsProject.setCreateDate(new Date());
        //保存项目
        //保存项目
-       overheadLineMapper.saveProject(wbsProject);
+//       overheadLineMapper.saveProject(wbsProject);
        //获取调差系数
        //获取调差系数
        double[] tcRate = new double[3];
        double[] tcRate = new double[3];
        tcRate[0] = ruleRatioService.getValueByName(BashInfo.RATIO_RGTC).getValue()/100;
        tcRate[0] = ruleRatioService.getValueByName(BashInfo.RATIO_RGTC).getValue()/100;